home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Periodicals / General / Mac Script / mac-script-94-02.txt next >
Text File  |  1994-06-09  |  138KB  |  3,278 lines

  1. Subject: MacScripting mailing list digest
  2. Date: Fri, 04 Mar 94 15:12:35 -0600
  3. From: Fred Terry <pfterry@lks.csi.com>
  4.  
  5.  
  6. This is the MacScripting mailing list digest for the month of February 94.
  7.  
  8. =========================================================================
  9. Date:         Wed, 2 Feb 1994 13:17:33 +0000
  10. Reply-To:     Discussion of Userland Frontier for Macintosh
  11.               <FRONTIER@DARTCMS1.BITNET>
  12. Sender:       Discussion of Userland Frontier for Macintosh
  13.               <FRONTIER@DARTCMS1.BITNET>
  14. From:         mark stewart <STEWART@UTHSCSA.EDU>
  15. Subject:      None
  16.  
  17.                       None
  18. One of the folks on a QuickMail group had this to say:
  19.  
  20. > QM-AOCE is CE's AOCE mailer program.  It comes with QM-Forms AOCE, which
  21. > converts your old forms files into the new format.  It strongly
  22. > resembles the old QM client, with the added benefit of being
  23. > *Applescriptable*.  It works flawlessly for me.
  24.  
  25. Has anybody on the group had the chance to use this, with Frontier or
  26. otherwise? We are pretty solidly entrenched with QuickMail here so a mailer
  27. that uses AOCE while still looking like QM is ideal. Having it be scriptable is
  28. icing on the cake.
  29. Also, to add even more icing to an already sweet package, has anyone written up
  30. some verbs for the aete glue?
  31. Thanks,
  32. ________________________________
  33.   Mark Stewart  > stewart@uthscsa.edu
  34.   The Research Imaging Center, UTHSCSA
  35. ________________________________
  36. =========================================================================
  37. Date:         Wed, 2 Feb 1994 13:31:52 -0500
  38. Reply-To:     Discussion of Userland Frontier for Macintosh
  39.               <FRONTIER@DARTCMS1.BITNET>
  40. Sender:       Discussion of Userland Frontier for Macintosh
  41.               <FRONTIER@DARTCMS1.BITNET>
  42. From:         Jay Martin <martin@AIDT.EDU>
  43. Subject:      Re: QuickMail AOCE
  44.  
  45. >Has anybody on the group had the chance to use this, with Frontier or
  46. >otherwise? We are pretty solidly entrenched with QuickMail here so a mailer
  47. >that uses AOCE while still looking like QM is ideal. Having it be scriptable is
  48. >icing on the cake.
  49. >Also, to add even more icing to an already sweet package, has anyone written up
  50. >some verbs for the aete glue?
  51. >Thanks,
  52.  
  53. Mark,
  54. I've got QM AOCE in and have installed it at my location for limited
  55. testing. I've only played a bit with the scripting features using
  56. AppleScript, but in general it looks pretty good. Inserting an address
  57. appears to be a bit of a challenge, but I haven't seriously tried yet. If I
  58. come up with anything interesting, I'll put them on gaea (they will be in
  59. AppleScript, however).
  60.  
  61. As for the product itself, the gateway demo from StarNine that bridges a
  62. QuickMail server to an individual machine works pretty well. However, you
  63. must be careful when your QM server updates the name server, because if a
  64. personal gateway tries to connect during this time, you get a timeout.
  65. However, if you (like me) are switching to the PowerShare server, then this
  66. problem is only a transitional problem. As for the QM forms, they do look
  67. almost exactly the same but with the AOCE mailer stuck on the top.
  68.  
  69. I'm now in the process of installing the PowerShare server and hope to have
  70. all converted in a few weeks. We are also adding the StarNine Mail*Link
  71. SMTP for PowerShare gateway so that everyone gets internet mail on their
  72. desktop.
  73.  
  74.  
  75. +---------------------------------------+----------------------------------+
  76. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  77. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  78. |   | ----------+ Development Training  |                  martin@aidt.edu |
  79. |   +---------------------------------- | (But what do they know?)         |
  80. +---------------------------------------+----------------------------------+
  81. =========================================================================
  82. Date:         Wed, 2 Feb 1994 15:31:18 U
  83. Reply-To:     Discussion of Userland Frontier for Macintosh
  84.               <FRONTIER@DARTCMS1.BITNET>
  85. Sender:       Discussion of Userland Frontier for Macintosh
  86.               <FRONTIER@DARTCMS1.BITNET>
  87. From:         "Rattray, A." <rattray_a@JPMORGAN.COM>
  88. Subject:      Re: Frontier 3.0 Update Info
  89.  
  90. I purchase Frontier and received version 2.0....What is their fax number...
  91. _______________________________________________________________________________
  92. From: Discussion of Userland Frontier for Macintosh on Wed, Dec 1, 1993 1:14 PM
  93. Subject: Frontier 3.0 Update Info
  94. To: Multiple recipients of list FRONTIER
  95.  
  96. Here is a message which Dave Winer has posted on CompuServe (and presumably
  97. AppleLink and America OnLine).  The schedule noted assumes that the disk
  98. duplicator and the printer deliver on time.  Note the address to which to
  99. send the electronic orders (which I've copied here because it is somewhat
  100. buried in the message:  76703.4047@compuserve.com
  101.  
  102. Frontier 3.0 Upgrade Info -------------------------
  103.  
  104. The cost to upgrade to Frontier 3.0 is $39; outside the U.S. and Canada
  105. $59. Only registered Frontier users are eligable for the upgrade. If you
  106. haven't sent in your registration card, please do so now.
  107.  
  108. We will start mailing upgrade packages on December 3.
  109.  
  110. You can order your upgrade via electronic mail for quicker turnaround.
  111. Send a message to 76703.4047@compuserve.com. Include your Frontier
  112. registration number and credit card information: your name as it appears on
  113. the card, account number, expiration date, mailing address. Your account
  114. will be charged additional sales tax if applicable.
  115.  
  116. If you purchased Frontier 2.0 since August 1, 1993, the upgrade is free.
  117. Proof of purchase date is required to qualify for a free upgrade. If you
  118. purchased Frontier directly from UserLand Software, no proof is required.
  119. Free upgrades cannot be processed via electronic mail.
  120.  
  121. DW
  122.  
  123. - --
  124. jwbaxter@pt.olympus.net (John W. Baxter)
  125. AppleLink BAXTER.JOHN if you really must (but ONLY from AppleLink).
  126. CIS 71735,1626
  127. =========================================================================
  128. Date:         Wed, 2 Feb 1994 16:21:08 U
  129. Reply-To:     Discussion of Userland Frontier for Macintosh
  130.               <FRONTIER@DARTCMS1.BITNET>
  131. Sender:       Discussion of Userland Frontier for Macintosh
  132.               <FRONTIER@DARTCMS1.BITNET>
  133. From:         Shawn Connelly <prubank!qmgateway!sconnelly@UUNET.UU.NET>
  134. Subject:      Re: None
  135.  
  136.                  RE>None
  137. I haven't used this, although we just upgraded to System 7 Pro, but I've
  138. done a lot of work with QuickMail and Frontier. I've been using
  139. QuickMessenger and it's HyperCard XCMD's. They work great, and I get all
  140. the automation I need.
  141.  
  142. - --------------------------------------
  143. Date: 2/2/94 4:14 PM
  144. To: Shawn Connelly
  145. From: Discussion of Userland Frontie
  146.                       None
  147. One of the folks on a QuickMail group had this to say:
  148.  
  149. > QM-AOCE is CE's AOCE mailer program.  It comes with QM-Forms AOCE, which
  150. > converts your old forms files into the new format.  It strongly
  151. > resembles the old QM client, with the added benefit of being
  152. > *Applescriptable*.  It works flawlessly for me.
  153.  
  154. Has anybody on the group had the chance to use this, with Frontier or
  155. otherwise? We are pretty solidly entrenched with QuickMail here so a
  156. mailer
  157. that uses AOCE while still looking like QM is ideal. Having it be
  158. scriptable is
  159. icing on the cake.
  160. Also, to add even more icing to an already sweet package, has anyone
  161. written up
  162. some verbs for the aete glue?
  163. Thanks,
  164. ________________________________
  165.   Mark Stewart  > stewart@uthscsa.edu
  166.   The Research Imaging Center, UTHSCSA
  167. ________________________________
  168.  
  169.  
  170.   ------------------------------------------------------------------------
  171.   Shawn Connelly                          |  Computers are useless. They
  172.   The Prudential Bank                     |   can only give you answers.
  173.   Two Concourse Pkwy, #400                |    - Pablo Picasso
  174.   Atlanta, GA 30328                       |
  175.   Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
  176. =========================================================================
  177. Date:         Wed, 2 Feb 1994 17:49:37 U
  178. Reply-To:     Discussion of Userland Frontier for Macintosh
  179.               <FRONTIER@DARTCMS1.BITNET>
  180. Sender:       Discussion of Userland Frontier for Macintosh
  181.               <FRONTIER@DARTCMS1.BITNET>
  182. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  183. Subject:      Re: Re- QuickMail AOCE
  184.  
  185.         Reply to:   RE>Re: QuickMail AOCE
  186. Thanks for the info. Sounds good. As I'm thinking about it--moving our site to
  187. PowerTalk, bit by bit--how do PowerTalk/QM and plain QM compare in terms of the
  188. RAM hit? A casual investigation on my own machine indicates that QM takes about
  189. 800K when it's active and 300K when inactive. Then again I get a lot of mail.
  190. Any idea?
  191.  
  192. Mark Stewart
  193. =========================================================================
  194. Date:         Wed, 2 Feb 1994 16:26:57 -0800
  195. Reply-To:     Discussion of Userland Frontier for Macintosh
  196.               <FRONTIER@DARTCMS1.BITNET>
  197. Sender:       Discussion of Userland Frontier for Macintosh
  198.               <FRONTIER@DARTCMS1.BITNET>
  199. From:         Scott Kinard -- Educational Service District #112
  200.               <skinard@ESD112.WEDNET.EDU>
  201. Subject:      Can you script Versaterm?
  202.  
  203. Greetings,
  204.   How scriptable is the communications app Versaterm? (I'm using v4.6.3)
  205. What I'd like to be able to do is start it up and have it download some
  206. files from another system. Is this possible? If so, are any examples of how
  207. to do it floating around?
  208.  
  209. - - Scott
  210.  
  211. +------------------------------------------------------------------------------+
  212. + Scott Kinard  (Applications Programmer/Operator)   skinard@esd112.wednet.edu +
  213. + Educational Service District #112                  skinard@well.sf.ca.us     +
  214. + 2500 NE 65th Ave                                   72440,2736 (Compu$erve)   +
  215. + Vancouver, WA. 98661-6812                                                    +
  216. + (206) 750-7502 (206) 750-9706 FAX                                            +
  217. +------------------------------------------------------------------------------+
  218. +   "For a list of the ways that technology has failed to improve the quality  +
  219. +    of our lives, please press three." - Alice Kahn                           +
  220. +------------------------------------------------------------------------------+
  221. =========================================================================
  222. Date:         Wed, 2 Feb 1994 21:17:55 -0800
  223. Reply-To:     Discussion of Userland Frontier for Macintosh
  224.               <FRONTIER@DARTCMS1.BITNET>
  225. Sender:       Discussion of Userland Frontier for Macintosh
  226.               <FRONTIER@DARTCMS1.BITNET>
  227. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  228. Subject:      Re: Can you script Versaterm?
  229.  
  230. >  How scriptable is the communications app Versaterm?
  231. >
  232.         At this time the only available scriptable communications program
  233. is SITcomm from Aladdin Systems, Inc.  It is also fully recordable and
  234. supports Frontier Menu Sharing!
  235.  
  236. Leonard
  237.  
  238. - -----------------------------------------------------------------------------
  239. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  240. Director of Advanced Technology         AppleLink:      MACgician
  241. Aladdin Systems, Inc.                   GEnie:          MACgician
  242. =========================================================================
  243. Date:         Thu, 3 Feb 1994 08:42:26 -0500
  244. Reply-To:     Discussion of Userland Frontier for Macintosh
  245.               <FRONTIER@DARTCMS1.BITNET>
  246. Sender:       Discussion of Userland Frontier for Macintosh
  247.               <FRONTIER@DARTCMS1.BITNET>
  248. From:         Jay Martin <martin@AIDT.EDU>
  249. Subject:      Re: Can you script Versaterm?
  250.  
  251. >Greetings,
  252. >  How scriptable is the communications app Versaterm? (I'm using v4.6.3)
  253. >What I'd like to be able to do is start it up and have it download some
  254. >files from another system. Is this possible? If so, are any examples of how
  255. >to do it floating around?
  256. >
  257. >- Scott
  258.  
  259. Scott,
  260.  
  261. I've got VersaTerm 5.0, and it's not scriptable with AppleScript (no aete),
  262. and I haven't seen any Frontier stuff to script it. I've read somewhere
  263. lately that some version of it is (maybe Pro), but I don't know. It's
  264. really too bad, because it could really help me in a couple of
  265. circumstances.
  266.  
  267. Jay
  268.  
  269. +---------------------------------------+----------------------------------+
  270. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  271. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  272. |   | ----------+ Development Training  |                  martin@aidt.edu |
  273. |   +---------------------------------- | (But what do they know?)         |
  274. +---------------------------------------+----------------------------------+
  275. =========================================================================
  276. Date:         Thu, 3 Feb 1994 10:34:16 U
  277. Reply-To:     Discussion of Userland Frontier for Macintosh
  278.               <FRONTIER@DARTCMS1.BITNET>
  279. Sender:       Discussion of Userland Frontier for Macintosh
  280.               <FRONTIER@DARTCMS1.BITNET>
  281. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  282. Subject:      Re: Re- Can you script Versa
  283.  
  284.         Reply to:   RE>Re: Can you script Versater
  285. > > >  How scriptable is the communications app Versaterm? >
  286.  
  287. > At this time the only available scriptable communications program is
  288. > SITcomm from Aladdin Systems, Inc.  It is also fully recordable and
  289. > supports Frontier Menu Sharing!
  290.  
  291. I've seen SITcomm and it looks really cool, really useful. Alas it doesn't
  292. address the internet at all nor is it projected to. Which is a shame because,
  293. at our site, the easiest way to transfer files from our Suns to our Macs is to
  294. use Dartmouth's Fetch ftp client which has a nice Mac-like front end and
  295. handles most of the transfer mode issues automatically.  Adding scriptablility
  296. to Fetch or adding FTP to SITcomm--and I would prefer the latter--would let us
  297. spend time more productively than sitting there waiting for the transfer to
  298. finish so we can start the next download.
  299. But enough kvetching,
  300. Mark Stewart
  301. BIAD-Research Imaging Center
  302. UTHSCSA
  303.  
  304. P.S. I've seen AnArchie. It proves you can do scriptable ftp but it's a little
  305. too specific. IMHO, a more general tool is still needed.
  306. =========================================================================
  307. Date:         Thu, 3 Feb 1994 09:16:34 -0800
  308. Reply-To:     Discussion of Userland Frontier for Macintosh
  309.               <FRONTIER@DARTCMS1.BITNET>
  310. Sender:       Discussion of Userland Frontier for Macintosh
  311.               <FRONTIER@DARTCMS1.BITNET>
  312. From:         Mike Cohen <isis@NETCOM.COM>
  313. Subject:      Re: Re- Can you script Versa
  314.  
  315. At 10:34 AM 2/3/94 +0000, mark stewart wrote:
  316. >        Reply to:   RE>Re: Can you script Versater
  317. >> > >  How scriptable is the communications app Versaterm? >
  318. >
  319. >> At this time the only available scriptable communications program is
  320. >> SITcomm from Aladdin Systems, Inc.  It is also fully recordable and
  321. >> supports Frontier Menu Sharing!
  322. >
  323. >I've seen SITcomm and it looks really cool, really useful. Alas it doesn't
  324. >address the internet at all nor is it projected to. Which is a shame because,
  325. >at our site, the easiest way to transfer files from our Suns to our Macs is to
  326. >use Dartmouth's Fetch ftp client which has a nice Mac-like front end and
  327. >handles most of the transfer mode issues automatically.  Adding scriptablility
  328. >to Fetch or adding FTP to SITcomm--and I would prefer the latter--would let us
  329. >spend time more productively than sitting there waiting for the transfer to
  330. >finish so we can start the next download.
  331. >But enough kvetching,
  332. >Mark Stewart
  333. >BIAD-Research Imaging Center
  334. >UTHSCSA
  335. >
  336. I've seen telnet & ftp CTB tools, which should work with SITcomm (I don't
  337. use th since I have a dial-up only account).
  338.  
  339. ____________________________________________________________
  340. Mike Cohen           | "Software that means business"
  341. ISIS International   |
  342. (818) 788-4747 Voice | isis@netcom.com        | ALink: D6734
  343. (818) 501-0653 Fax   | NewtonMail: MikeC49506 | AOL: MikeC20
  344. =========================================================================
  345. Date:         Thu, 3 Feb 1994 12:27:05 -0500
  346. Reply-To:     Discussion of Userland Frontier for Macintosh
  347.               <FRONTIER@DARTCMS1.BITNET>
  348. Sender:       Discussion of Userland Frontier for Macintosh
  349.               <FRONTIER@DARTCMS1.BITNET>
  350. From:         Mark Duffield <duffiem@AA.WL.COM>
  351. Subject:      Re: Can you script Versaterm?
  352. In-Reply-To:  Jay Martin <martin@AIDT.EDU> "Re: Can you script Versaterm?" (Feb
  353.               3,  8:42am)
  354.  
  355. On Feb 3,  8:42am, Jay Martin wrote:
  356. > Subject: Re: Can you script Versaterm?
  357. > >Greetings,
  358. > >  How scriptable is the communications app Versaterm? (I'm using v4.6.3)
  359. > >What I'd like to be able to do is start it up and have it download some
  360. > >files from another system. Is this possible? If so, are any examples of how
  361. > >to do it floating around?
  362. > >
  363. > >- Scott
  364. >
  365. > Scott,
  366. >
  367. > I've got VersaTerm 5.0, and it's not scriptable with AppleScript (no aete),
  368. > and I haven't seen any Frontier stuff to script it. I've read somewhere
  369. > lately that some version of it is (maybe Pro), but I don't know. It's
  370. > really too bad, because it could really help me in a couple of
  371. > circumstances.
  372. >
  373.  
  374. I have VersaTerm PRO V5.0.1.  No aete there either.  Sorry.
  375.  
  376. [Signature deleted]
  377. >-- End of excerpt from Jay Martin
  378.  
  379.  
  380.  
  381.  
  382. - --
  383. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  384.  Mark J. Duffield                    |
  385.  Sr. Systems Analyst                 |
  386.  Preclinical Scientific Computing    |
  387.  Parke Davis Pharmaceutical Research |
  388.  Ann Arbor, MI  48105                |
  389. =========================================================================
  390. Date:         Thu, 3 Feb 1994 17:02:42 -0500
  391. Reply-To:     Discussion of Userland Frontier for Macintosh
  392.               <FRONTIER@DARTCMS1.BITNET>
  393. Sender:       Discussion of Userland Frontier for Macintosh
  394.               <FRONTIER@DARTCMS1.BITNET>
  395. From:         Jay Martin <martin@AIDT.EDU>
  396. Subject:      Scripting FTP
  397.  
  398. Mark,
  399.  
  400. You need Anarchie. This is a shareware ($10) product from Peter Lewis that
  401. allows you to script FTP's and archie searches. It supports both
  402. AppleScript and Frontier (including menu sharing in the latest version -
  403. 1.1.0). It's way cool! I found about it here a couple of weeks ago.
  404.  
  405. Jay
  406.  
  407. +---------------------------------------+----------------------------------+
  408. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  409. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  410. |   | ----------+ Development Training  |                  martin@aidt.edu |
  411. |   +---------------------------------- | (But what do they know?)         |
  412. +---------------------------------------+----------------------------------+
  413. =========================================================================
  414. Date:         Thu, 10 Feb 1994 18:26:18 +0000
  415. Reply-To:     Discussion of Userland Frontier for Macintosh
  416.               <FRONTIER@DARTCMS1.BITNET>
  417. Sender:       Discussion of Userland Frontier for Macintosh
  418.               <FRONTIER@DARTCMS1.BITNET>
  419. From:         mark stewart <STEWART@UTHSCSA.EDU>
  420. Subject:      Troubles with Anarchie
  421.  
  422. Troubles with Anarchie                  via Mail*Link(r) for PowerTalk(tm)/QM
  423. Well after some back and forth and a bit of reassurance from Peter Lewis I've
  424. embarked on writing a set of scripts for Anarchie (pronounced "anarchy"
  425. according to its author.) Leonard Rosenthol kindly provided the glue for
  426. Frontier which I am using. Alas I ran into trouble from the start.
  427.  
  428. Here's the verb my script calls. From what I can gather from the comments this
  429. verb is simply designed to get a list of files from the specified directory and
  430. write them into a file on my Mac.
  431.  
  432. on list (destFile, hostName = nil, searchPath = nil, fname = nil, user = nil,
  433. password = nil, viaAlex = nil) { <<list files in a directory & SAVE IN destFile
  434.         return (appleEvent (AnArchie.id, 'Arch', 'List', '----', filespec (destF
  435.    ile),
  436. 'FTPh', string (hostName), 'FTPc', string (searchPath),
  437.                 'pnam', string (fname), 'ArGU', string (user), 'ArGp', string (p
  438.    assword),
  439. 'ArGA', string (viaAlex)))}
  440.  
  441.  
  442. with AnArchie {
  443.         launch ( );
  444.         bringToFront ();
  445.         list ("Mark's HD:list", "biad42", "biad17_data/home/stewart", "", "userI
  446.    D",
  447. "password", "");
  448.         }
  449.  
  450. This results in the following error message: "Internal error -- unexpected
  451. opcode encountered (38)" with the cursor pointing at the first parameter in the
  452. call to Anarchie.list.  I'm not really sure what the error is reporting. I've
  453. never used any verbs with optional parameters so it may be that I'm writing
  454. them wrong.
  455.  
  456. Anybody have any idea what's happening? Ultimately I'd like the script to login
  457. to one of our Suns and automatically download a list of  files to the Mac.
  458. Thanks for any help,
  459. Mark Stewart
  460. Research Imaging Center
  461. UTHSCSA
  462. =========================================================================
  463. Date:         Thu, 10 Feb 1994 17:32:09 -0800
  464. Reply-To:     Discussion of Userland Frontier for Macintosh
  465.               <FRONTIER@DARTCMS1.BITNET>
  466. Sender:       Discussion of Userland Frontier for Macintosh
  467.               <FRONTIER@DARTCMS1.BITNET>
  468. From:         Terry Teague <teague@APPLE.COM>
  469. Subject:      Re: Troubles with Anarchie
  470.  
  471. Dear Mark,
  472.  
  473. >Troubles with Anarchie                  via Mail*Link(r) for PowerTalk(tm)/QM
  474.  
  475. [stuff deleted]
  476.  
  477. >This results in the following error message: "Internal error -- unexpected
  478. >opcode encountered (38)" with the cursor pointing at the first parameter in the
  479. >call to Anarchie.list.  I'm not really sure what the error is reporting. I've
  480. >never used any verbs with optional parameters so it may be that I'm writing
  481. >them wrong.
  482.  
  483. What version of Frontier are you using, and on what machine - there were
  484. some problems with earlier problems of Frontier on '040 machines that could
  485. cause the problems you describe. The current version of Frontier is 3.0.1.
  486.  
  487. Regards, Terry Teague
  488. =========================================================================
  489. Date:         Fri, 11 Feb 1994 01:30:15 -0800
  490. Reply-To:     Discussion of Userland Frontier for Macintosh
  491.               <FRONTIER@DARTCMS1.BITNET>
  492. Sender:       Discussion of Userland Frontier for Macintosh
  493.               <FRONTIER@DARTCMS1.BITNET>
  494. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  495. Subject:      Re: Troubles with Anarchie
  496.  
  497. >Troubles with Anarchie                  via Mail*Link(r) for PowerTalk(tm)/QM
  498. >Well after some back and forth and a bit of reassurance from Peter Lewis I've
  499. >embarked on writing a set of scripts for Anarchie (pronounced "anarchy"
  500. >according to its author.) Leonard Rosenthol kindly provided the glue for
  501. >Frontier which I am using. Alas I ran into trouble from the start.
  502.  
  503. ...
  504.  
  505. >This results in the following error message: "Internal error -- unexpected
  506. >opcode encountered (38)" with the cursor pointing at the first parameter in the
  507. >call to Anarchie.list.  I'm not really sure what the error is reporting. I've
  508. >never used any verbs with optional parameters so it may be that I'm writing
  509. >them wrong.
  510. >
  511.  
  512.  
  513. I'll pass the unexpected opcode encountered (38) problem along to the
  514. engineer, and ask what it means.
  515.  
  516. Meanwhile, this script works for me (yes...I've disguised the password):
  517.  
  518. with AnArchie
  519.     launch ( )
  520.     bringToFront ()
  521.     list ("HD:list", "olympus.net", "/h/jwbaxter/", nil, "jwbaxter",
  522. "thisIsNotMyPassowd", "")
  523.  
  524.  
  525. [The line wrap on the list () call is courtesy of Eudora and friends.]
  526.  
  527. Hope this helps.  --John
  528.  
  529. - --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  530.   UserLand Software support
  531. =========================================================================
  532. Date:         Fri, 11 Feb 1994 11:31:56 -0800
  533. Reply-To:     Discussion of Userland Frontier for Macintosh
  534.               <FRONTIER@DARTCMS1.BITNET>
  535. Sender:       Discussion of Userland Frontier for Macintosh
  536.               <FRONTIER@DARTCMS1.BITNET>
  537. From:         Chuck Pliske <chuckp@U.WASHINGTON.EDU>
  538. Subject:      Scripting AppleMail files
  539.  
  540. I'm interested in using Frontier to process the numerous files I am now
  541. getting/saving thru the star nine gateway with the standard Apple mailer.  Does
  542. anyone know if those files can be "decoded" with frontier into their component
  543. parts?
  544.  
  545. Thanks,
  546.  
  547. Chuck Pliske
  548. =========================================================================
  549. Date:         Mon, 14 Feb 1994 00:15:48 -0800
  550. Reply-To:     Discussion of Userland Frontier for Macintosh
  551.               <FRONTIER@DARTCMS1.BITNET>
  552. Sender:       Discussion of Userland Frontier for Macintosh
  553.               <FRONTIER@DARTCMS1.BITNET>
  554. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  555. Subject:      A Note About Recording
  556.  
  557. [Cross-posted from CompuServe]:
  558.  
  559.    If you find that Frontier is putting a comment in the with statement at
  560. the beginning of the portion of a recorded script involving some
  561. application ("ToyStore" in this example), like this (approximate)
  562.  
  563. with objectModel { << no glue table for application "ToyStore"
  564.  
  565. even when you __know__ that there is in fact a glue table, check the
  566. appInfo.path entry.  A stale value there (I had moved the application to a
  567. different volume) will cause the problem, which is corrected by ensuring
  568. that appInfo.path is valid.
  569.  
  570.    --John
  571.  
  572. - --
  573. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  574. The opinions expressed here are those of a large tree in my back yard.
  575. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  576. =========================================================================
  577. Date:         Mon, 14 Feb 1994 14:36:43 U
  578. Reply-To:     Discussion of Userland Frontier for Macintosh
  579.               <FRONTIER@DARTCMS1.BITNET>
  580. Sender:       Discussion of Userland Frontier for Macintosh
  581.               <FRONTIER@DARTCMS1.BITNET>
  582. From:         Shawn Connelly <sconnelly@QMGATEWAY.PRUBANK.COM>
  583. Subject:      app.start problems
  584.  
  585. app.start problems                      via Mail*Link(r) for PowerTalk(tm)/QM
  586. I am trying to use app.start and am having a problem getting it to coerce
  587. an address for a element in my verb.apps table. The name of the
  588. application is SQL*DBA, and as long as the "*" is in the name, Frontier
  589. can't coerce the address.
  590.  
  591. Is there a way around this. I'd use "SQLDBA" as the name of the app, but I
  592. need it to be available for installation on non-Frontier literate user's
  593. machines.
  594.  
  595. - ------------------------------------------------------------------------
  596. Shawn Connelly                          |  Computers are useless. They
  597. The Prudential Bank                     |   can only give you answers.
  598. Two Concourse Pkwy, #400                |    - Pablo Picasso
  599. Atlanta, GA 30328                       |
  600. Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
  601. =========================================================================
  602. Date:         Mon, 14 Feb 1994 14:22:44 -0800
  603. Reply-To:     Discussion of Userland Frontier for Macintosh
  604.               <FRONTIER@DARTCMS1.BITNET>
  605. Sender:       Discussion of Userland Frontier for Macintosh
  606.               <FRONTIER@DARTCMS1.BITNET>
  607. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  608. Subject:      Re: app.start problems
  609.  
  610. At 14:36 2/14/94 +0000, Shawn Connelly wrote:
  611. >---------------------- Information from the mail header -----------------------
  612. >Sender:       Discussion of Userland Frontier for Macintosh
  613. >              <FRONTIER@DARTCMS1.BITNET>
  614. >Poster:       Shawn Connelly <sconnelly@QMGATEWAY.PRUBANK.COM>
  615. >Subject:      app.start problems
  616. >-------------------------------------------------------------------------------
  617. >
  618. >app.start problems                      via Mail*Link(r) for PowerTalk(tm)/QM
  619. >I am trying to use app.start and am having a problem getting it to coerce
  620. >an address for a element in my verb.apps table. The name of the
  621. >application is SQL*DBA, and as long as the "*" is in the name, Frontier
  622. >can't coerce the address.
  623.  
  624. Shawn,
  625.    Most cases of addressing in Frontier, in which "illegal" characters are
  626. part of a table name, can be solved using this form:
  627.  
  628.    app.start (verbs.apps.["SQL*DBA"])
  629.  
  630. I don't know whather that would work in this particular verb, or not, but
  631. it should.  Note that it is likely to be a major pain.
  632.  
  633. There shouldn't be any major problems using SQLDBA as the table name, and
  634. exporting it under that name for installation on the users' machines.
  635. After exporting it, you could play with the [Finder] name of the exported
  636. file, if it helps your users.
  637.  
  638.   --John
  639.  
  640. - --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  641.   UserLand Software support
  642. =========================================================================
  643. Date:         Tue, 15 Feb 1994 12:48:00 +0000
  644. Reply-To:     Discussion of Userland Frontier for Macintosh
  645.               <FRONTIER@DARTCMS1.BITNET>
  646. Sender:       Discussion of Userland Frontier for Macintosh
  647.               <FRONTIER@DARTCMS1.BITNET>
  648. From:         "peter (p.s.) wilson" <peterw@BNR.CA>
  649. Subject:      Rinaldi's Chooser RESET Problem
  650.  
  651. I am having a problem using Rinaldi's Chooser 1.7 available
  652. on the Frontier Extras? 5/93 disk.
  653.  
  654. I have a System 7.1 Installer script that (briefly)
  655.  * mounts an Appleshare volume
  656.  * renames the existing System Folder to Old System Folder
  657.  * copies over a new System 7.1 Folder
  658.  * uses chooser.getCurrentPrinter () to determine the
  659.    PrtDriver,SelectedLaser, and PrtZone currently active.
  660.  * disables the old System Folder (by moving the Finder)
  661.  * Opens & closes the new System Folder to bless it.
  662.  * uses chooser.choosePrinter(PrtDriver,SelectedLaser,PrtZone)
  663.    to reset the previously defined LaserWriter.
  664.  
  665. After RESTART, the new System Folder is ACTIVE, but the old
  666. and now reset laserwriter selection is NOT ACTIVE as it should
  667. be. This reset operation worked fine in System 7.0.1 with
  668. Laserwriter 7.1.1 but not it seems with 7.1 and 7.1.2 LaserW.
  669.  
  670. It does not fail completely however...
  671. I can make the laserwriter selection ACTIVE simply by OPENing
  672. Chooser, clicking the LaserWriter icon ONCE, and CLOSing Chooser.
  673. But these last steps should not be necessary.
  674.  
  675. Is something broken?
  676.  
  677. OR alternatively what Frontier code could I use
  678. to OPEN Chooser, select/click the LaserWriter icon and
  679. then CLOSE the Chooser? (a workaround the original problem)
  680.  
  681. Any ideas will be most welcome.
  682.  
  683. Thanks,
  684.  
  685. Peter Wilson
  686. Software Support,
  687. BNR Ottawa, Canada
  688. peterw@bnr.ca
  689. =========================================================================
  690. Date:         Tue, 15 Feb 1994 14:57:45 U
  691. Reply-To:     Discussion of Userland Frontier for Macintosh
  692.               <FRONTIER@DARTCMS1.BITNET>
  693. Sender:       Discussion of Userland Frontier for Macintosh
  694.               <FRONTIER@DARTCMS1.BITNET>
  695. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  696. Subject:      Re> Re: Troubles with Anar...
  697.  
  698. Re> Re: Troubles with Anar...             via Mail*Link(r) for PowerTalk(tm)/QM
  699.  
  700.  
  701.  ------ From: Discussion of Userland Frontie, Fri, Feb 11, 1994 ------
  702.  
  703. I'll pass the unexpected opcode encountered (38) problem along to the
  704. engineer, and ask what it means.
  705.  
  706. Meanwhile, this script works for me (yes...I've disguised the password):
  707.  
  708. with AnArchie
  709.     launch ( )
  710.     bringToFront ()
  711.     list ("HD:list", "olympus.net", "/h/jwbaxter/", nil, "jwbaxter",
  712. "thisIsNotMyPassowd", "")
  713.  
  714. Hello John,
  715. Thanks for responding. At P Terry's  urging, I decided to upgrade to the new
  716. Frontier (v3.0.1) before carrying on my investigations. Having done that, I
  717. don't get the opcode error anymore. Instead I get Anarchie telling me my login
  718. was incorrect. To quote->
  719.  
  720. Status: -2 (FTP server)
  721. State: Sending password
  722. Result: 530 Login incorrect.
  723.  
  724. I've compared the results of ftp'ing into our Sun directly using NCSA
  725. Telnet.Telnet 2.5 has no problem ftp'ing directly and writing a list of the
  726. files in my home directory. So where's the difficulty, I wonder?
  727.  
  728. When you run your script, what is it exactly that you get back? I'm assuming
  729. that the output of the ls command is written to the file at "HD:list." Correct?
  730. Should there be a file at "HD:list" already or is Anarchie supposed to create
  731. this a la file.sureFolder?
  732.  
  733. I appreciate whatever assistance you have to offer.
  734.  
  735. Mark Stewart
  736. Research Imaging Center
  737. =========================================================================
  738. Date:         Wed, 16 Feb 1994 09:10:00 U
  739. Reply-To:     Discussion of Userland Frontier for Macintosh
  740.               <FRONTIER@DARTCMS1.BITNET>
  741. Sender:       Discussion of Userland Frontier for Macintosh
  742.               <FRONTIER@DARTCMS1.BITNET>
  743. From:         Shawn Connelly <sconnelly@QMGATEWAY.PRUBANK.COM>
  744. Subject:      Passing Values from Fronti...
  745.  
  746. Passing Values from Fronti...             via Mail*Link(r) for PowerTalk(tm)/QM
  747. Does anyone know how to pass a paramenter to a handler in HyperCard using
  748. AppleEvents?
  749.  
  750. The situation I have is a script that I am trying to kick off via
  751. Frontier. I can have it pick up a value from a field, but would prefer to
  752. pass the value from my Frontier script.
  753.  
  754. - ------------------------------------------------------------------------
  755. Shawn Connelly                          |  Computers are useless. They
  756. The Prudential Bank                     |   can only give you answers.
  757. Two Concourse Pkwy, #400                |    - Pablo Picasso
  758. Atlanta, GA 30328                       |
  759. Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
  760. =========================================================================
  761. Date:         Wed, 16 Feb 1994 15:21:43 EST
  762. Reply-To:     Discussion of Userland Frontier for Macintosh
  763.               <FRONTIER@DARTCMS1.BITNET>
  764. Sender:       Discussion of Userland Frontier for Macintosh
  765.               <FRONTIER@DARTCMS1.BITNET>
  766. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  767. Subject:      combining mailing lists
  768.  
  769. In the next day or two, we will be combining the Frontier and AppleScript
  770. mailing lists into one list called "MacScripting". We are doing this partly
  771. because there is much more overlap on the two lists and also because the
  772. current AppleScript list is not running under a very robust LISTSERV system.
  773.  
  774. The new list will be running on a machine at Dartmouth College which is much
  775. more reliable and allows for greater user-control of the mailing list
  776. (including digests and even gateways to newsgroups if a mac-scripting
  777. newsgroup does indeed ever come into existence). Note that the ftp site for
  778. Frontier and AppleScript won't be moving from gaea.
  779.  
  780. When the change is made, you will be alerted. We are hoping to have no
  781. downtime at all on either list.
  782.  
  783. When the switch is made the the list is ready to roll, we will send out a
  784. note indicating the new addresses you can use for sending to the list,
  785. sending commands to the LISTSERV, and reaching a human moderator.
  786.  
  787. If you have any questions or comments, please feel free to contact either one
  788. of us.
  789.  
  790. - -Fred Terry, moderator applescript list, pfterry@lks.csi.com
  791. - -Andy J. Williams, moderator, frontier list, AndyJW@dartmouth.edu
  792. =========================================================================
  793. Date:         Wed, 16 Feb 1994 17:00:53 -0800
  794. Reply-To:     Discussion of Userland Frontier for Macintosh
  795.               <FRONTIER@DARTCMS1.BITNET>
  796. Sender:       Discussion of Userland Frontier for Macintosh
  797.               <FRONTIER@DARTCMS1.BITNET>
  798. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  799. Subject:      Re: Passing Values from Fronti...
  800.  
  801. At  9:10 2/16/94 +0000, Shawn Connelly wrote:
  802. >
  803. >Does anyone know how to pass a paramenter to a handler in HyperCard using
  804. >AppleEvents?
  805. >
  806. >The situation I have is a script that I am trying to kick off via
  807. >Frontier. I can have it pick up a value from a field, but would prefer to
  808. >pass the value from my Frontier script.
  809. >
  810.  
  811. Shawn,
  812.    The unexciting Frontier script below shows one way:
  813.  
  814. with objectModel, HyperCard
  815.     doScript ("send \"testN 5\" to card \"JohnTest\"")
  816.  
  817. As it happens, in this case testN is the following silly handler (but it
  818. does use its parameter) and is a background script (because I happen to
  819. have a UserTalk script as the card script):
  820.  
  821. on testN n
  822.     repeat n times
  823.         beep
  824.     end repeat
  825.     put "I am still the HyperTalk test"
  826. end testN
  827.  
  828. The above should show the way, anyhow.  --John
  829.  
  830. - --
  831. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  832. The opinions expressed here are those of a large tree in my back yard.
  833. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  834. =========================================================================
  835. Date:         Wed, 16 Feb 1994 17:00:59 -0800
  836. Reply-To:     Discussion of Userland Frontier for Macintosh
  837.               <FRONTIER@DARTCMS1.BITNET>
  838. Sender:       Discussion of Userland Frontier for Macintosh
  839.               <FRONTIER@DARTCMS1.BITNET>
  840. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  841. Subject:      Re: Re> Re: Troubles with Anar...
  842.  
  843. At 14:57 2/15/94 +0000, mark stewart wrote:
  844. >When you run your script, what is it exactly that you get back? I'm assuming
  845. >that the output of the ls command is written to the file at "HD:list." Correct?
  846. >Should there be a file at "HD:list" already or is Anarchie supposed to create
  847. >this a la file.sureFolder?
  848.  
  849. Where this is the script mentioned:
  850.  
  851. >with AnArchie
  852. >    launch ( )
  853. >    bringToFront ()
  854. >    list ("HD:list", "olympus.net", "/h/jwbaxter/", nil, "jwbaxter",
  855. >"thisIsNotMyPassowd", "")
  856.  
  857.  
  858. Indeed, the file HD:list contains the output of an ls command, as near as I
  859. can tell.  The file doesn't need to exist in advance...I seem to remember
  860. that an existing file gets replaced silently (suggesting protection via
  861. script in some circumstances)
  862.  
  863. It's not clear to me what your login problem might be, assuming you have
  864. used a correct userid and password.  I suppose Anarchie might be sending
  865. one or both of the userid and password with a line terminator which your
  866. host isn't happy with, but that seems very doubtful.
  867.  
  868. I'll add the invalid opcode problem in your Anarchie script to the list of
  869. things which indicate a need for Frontier 3.0.1...thanks for the feedback.
  870.    --John
  871.  
  872. - --
  873. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  874. The opinions expressed here are those of a large tree in my back yard.
  875. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  876. =========================================================================
  877. Date:         Thu, 17 Feb 1994 09:27:29 U
  878. Reply-To:     Discussion of Userland Frontier for Macintosh
  879.               <FRONTIER@DARTCMS1.BITNET>
  880. Sender:       Discussion of Userland Frontier for Macintosh
  881.               <FRONTIER@DARTCMS1.BITNET>
  882. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  883. Subject:      Re: Re- Re> Re- Troubles wit
  884.  
  885.         Reply to:   RE>Re: Re> Re: Troubles with A
  886. > It's not clear to me what your login problem might be, assuming you have
  887. > used a correct userid and password.  I suppose Anarchie might be sending
  888. > one or both of the userid and password with a line terminator which your
  889. > host isn't happy with, but that seems very doubtful.
  890.  
  891. Actually, according to Peter Lewis, Anarchie's author, v1.0 of the program was
  892. indeed adding a character; a dash at the beginning of the password string. Our
  893. Sparcstations run SunOS 4.1.3 which likes its login strings unadulterated.
  894. Peter kindly sent me the new version, v1.1.1d2, which makes no assumptions
  895. about such matters, and is working great.
  896.  
  897. > I'll add the invalid opcode problem in your Anarchie script to the list
  898. > of things which indicate a need for Frontier 3.0.1...thanks for the
  899. > feedback.
  900. This may not be necessary. I upgraded to v3.0.1 and tried the list script that
  901. caused the error again and didn't get any opcode errors. Therefore, it would
  902. seem that the opcode problem is specific to version 2.0.1 of Frontier although
  903. I haven't tried confirming that.
  904.  
  905. Thank you much,
  906. Mark Stewart
  907. BIAD-Research Imaging Center
  908. UTHSCSA
  909. stewart@uthscsa.edu
  910. =========================================================================
  911. Date:         Thu, 17 Feb 1994 12:01:48 -0500
  912. Reply-To:     Discussion of Userland Frontier for Macintosh
  913.               <FRONTIER@DARTCMS1.BITNET>
  914. Sender:       Discussion of Userland Frontier for Macintosh
  915.               <FRONTIER@DARTCMS1.BITNET>
  916. From:         Robert Weber <Robert_Weber@QUICKMAIL.YALE.EDU>
  917. Subject:      FAQ
  918.  
  919.         Reply to:   FAQ
  920. Would the administrator please post a list of frequently asked questions,
  921. including the means of signing off this list?
  922. =========================================================================
  923. Date:         Thu, 17 Feb 1994 12:45:00 EST
  924. Reply-To:     Discussion of Userland Frontier for Macintosh
  925.               <FRONTIER@DARTCMS1.BITNET>
  926. Sender:       Discussion of Userland Frontier for Macintosh
  927.               <FRONTIER@DARTCMS1.BITNET>
  928. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  929. Subject:      Re: FAQ
  930.  
  931. - --- Robert Weber wrote:
  932. Would the administrator please post a list of frequently asked questions,
  933. including the means of signing off this list?
  934. - --- end of quoted material ---
  935.  
  936. There is no FAQ for this list as traffic was always quite low. There IS one
  937. for the AppleScript list which is still under construction.
  938.  
  939. As for how to sign off, that is changing today as we combine the two lists so
  940. hang on for another day and new instructions for signing off will be posted.
  941.  
  942. (in the mean time, you can send signoff request directly to me at
  943. AndyJW@dartmouth.edu and I will take care of it manually)
  944.  
  945. - -A
  946. =========================================================================
  947. Date:         Thu, 17 Feb 1994 10:11:49 -0800
  948. Reply-To:     Discussion of Userland Frontier for Macintosh
  949.               <FRONTIER@DARTCMS1.BITNET>
  950. Sender:       Discussion of Userland Frontier for Macintosh
  951.               <FRONTIER@DARTCMS1.BITNET>
  952. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  953. Subject:      Re: Re> Re: Troubles with Anar...
  954.  
  955. >I'll add the invalid opcode problem in your Anarchie script to the list of
  956. >things which indicate a need for Frontier 3.0.1...thanks for the feedback.
  957. >
  958.         You have mods you want to send me for the master table...
  959.  
  960. LDR
  961.  
  962. - -----------------------------------------------------------------------------
  963. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  964. Director of Advanced Technology         AppleLink:      MACgician
  965. Aladdin Systems, Inc.                   GEnie:          MACgician
  966. =========================================================================
  967. Date:         Thu, 17 Feb 1994 20:42:40 U
  968. Reply-To:     Discussion of Userland Frontier for Macintosh
  969.               <FRONTIER@DARTCMS1.BITNET>
  970. Sender:       Discussion of Userland Frontier for Macintosh
  971.               <FRONTIER@DARTCMS1.BITNET>
  972. From:         Shawn Connelly <prubank!qmgateway!sconnelly@UUNET.UU.NET>
  973. Subject:      Re: Passing Values from Fr...
  974.  
  975. Re>>Passing Values from Fr...             via Mail*Link(r) for PowerTalk(tm)/QM
  976. Thanks for the information.
  977.  
  978. - ------------------------------------------------------------------------
  979. Shawn Connelly                          |  Computers are useless. They
  980. The Prudential Bank                     |   can only give you answers.
  981. Two Concourse Pkwy, #400                |    - Pablo Picasso
  982. Atlanta, GA 30328                       |
  983. Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
  984.  
  985.  
  986.  ------ From: Discussion of Userland Frontie, Thu, Feb 17, 1994 ------
  987.  
  988. Mail*Link(r) SMTP               RE>Passing Values from Fron
  989.  
  990. At  9:10 2/16/94 +0000, Shawn Connelly wrote:
  991. >
  992. >Does anyone know how to pass a paramenter to a handler in HyperCard using
  993. >AppleEvents?
  994. >
  995. >The situation I have is a script that I am trying to kick off via
  996. >Frontier. I can have it pick up a value from a field, but would prefer to
  997. >pass the value from my Frontier script.
  998. >
  999.  
  1000. Shawn,
  1001.    The unexciting Frontier script below shows one way:
  1002.  
  1003. with objectModel, HyperCard
  1004.     doScript ("send \"testN 5\" to card \"JohnTest\"")
  1005.  
  1006. As it happens, in this case testN is the following silly handler (but it
  1007. does use its parameter) and is a background script (because I happen to
  1008. have a UserTalk script as the card script):
  1009.  
  1010. on testN n
  1011.     repeat n times
  1012.         beep
  1013.     end repeat
  1014.     put "I am still the HyperTalk test"
  1015. end testN
  1016.  
  1017. The above should show the way, anyhow.  --John
  1018.  
  1019. - --
  1020. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1021. The opinions expressed here are those of a large tree in my back yard.
  1022. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1023. =========================================================================
  1024. Date:         Sat, 19 Feb 1994 09:13:19 EST
  1025. Reply-To:     Discussion of Userland Frontier for Macintosh
  1026.               <FRONTIER@DARTCMS1.BITNET>
  1027. Sender:       Discussion of Userland Frontier for Macintosh
  1028.               <FRONTIER@DARTCMS1.BITNET>
  1029. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  1030. Subject:      List closed
  1031.  
  1032. This mailing list is now closed.
  1033.  
  1034. Please use
  1035.  
  1036. MacScripting@dartmouth.edu
  1037.  
  1038. for all future messages about Frontier.
  1039.  
  1040. All recipients have been moved over already.
  1041.  
  1042. With problems, contact MacScripting-Request@dartmouth.edu.
  1043.  
  1044. Thanks
  1045.  
  1046. - -A
  1047. =========================================================================
  1048. Date:         Mon, 21 Feb 1994 09:03:08 -0800
  1049. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1050. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1051. From:         William Randall Cook <wrc@NETCOM.COM>
  1052. Subject:      Re: MACSCRPT Digest - 19 Feb 1994 to 20 Feb 1994
  1053.  
  1054. I could possibly look in to the problem if you gave me a macsbug
  1055. log.  The other information I need is the address of the "AppleScript"
  1056. code segment in memory.  You can find this by typing
  1057.    wh NNNNN
  1058. where NNN is one of the routines on the stack (the last number on
  1059. each line of the stack dump). I need it to figure out the offsets of
  1060. the routines, to find out their names.
  1061.  
  1062. - -w
  1063. =========================================================================
  1064. Date:         Mon, 21 Feb 1994 10:59:11 -0800
  1065. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1066. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1067. From:         David Lewis <lewis@NETCOM.COM>
  1068. Subject:      Re: List of Aladdin Translators
  1069.  
  1070. >Where can I get a list of the Aladdin translator names that I can use w/i
  1071. >applescript?
  1072. >
  1073. >"BinHex4" seems to work for the BinHex4 translator, and "tar" works for the
  1074. >tar translator, but "UUcode" and "Unix Compress" don't seem to work for
  1075. >their respective translators.
  1076. >
  1077. >Thanks in advance.
  1078. >
  1079. >
  1080. >
  1081. >Regards,...Chris
  1082. >---------------------------------------------------------------------------
  1083. >Christopher B. Brannon                             University of Pittsburgh
  1084. >cbbst+@pitt.edu           THE*TRUTH*IS*OUT*THERE          Political Science
  1085.  
  1086. In most of the translators (unfortunately not the early ones like
  1087. AppleSingle) you will find a 'Name' resource with ID 0. This is a string
  1088. containing the name to use. The first character is the string length, and
  1089. the remaining characters are the name itself.
  1090.  
  1091.         David
  1092.  
  1093. - ------------------------------------------------------------------------
  1094. David Lewis               lewis@netcom.com                (408) 439-2374
  1095. =========================================================================
  1096. Date:         Mon, 21 Feb 1994 10:10:40 -0800
  1097. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1098. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1099. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1100. Subject:      Re: Invisible Files
  1101.  
  1102. >That's where this line comes in (all one line):
  1103. >
  1104. >tell application "Finder" to <<event FNDRmove>> alias "microtower:Trash:"
  1105. >given <<class fsel>>:{alias(WatchVol & ":" & (x as string))}
  1106. >
  1107. >I know this line works, because it deletes visible files just fine.
  1108. >Now, it seems the list folder command can see invisible files, but the
  1109. >Finder can't. When I run the script, and an invisible file is on the
  1110. >target volume, the Finder brings up an error dialog:
  1111.  
  1112. Finder pretty much ignores invisible files, most of the time.  [I like to
  1113. make definitive statements like that!]  This seems to be such a
  1114. situation...just as this one:  have a folder with a couple of visible
  1115. files, and an invisible one.  Make that folder's window current in Finder,
  1116. and do Select All in the Edit menu.  Drag the collection to the trash and
  1117. empty the trash.  The invisible file was not part of the selection, and is
  1118. still in the folder.
  1119.  
  1120. The script is trying to induce Finder not to ignore something it wants to
  1121. ignore.
  1122.  
  1123. - ----------
  1124. The easy solution is:  file.delete(thefile)
  1125. in Frontier.  That's only worked since January, 1992.
  1126.  
  1127. Frontier can also manipulate a file's invisible flag for you (but I don't
  1128. remember whether that also goes back to first release, or not):
  1129.    file.isVisible (thefile)     returns the state of the flag, and
  1130.    file.setVisible (thefile, booleanSetting)    sets it.
  1131.  
  1132. I'm sure there's a Scripting Addition available to do what you need, but I
  1133. don't pay a lot of attention to them.
  1134.  
  1135. - --
  1136. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1137. The opinions expressed here are those of a large tree in my back yard.
  1138. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1139. =========================================================================
  1140. Date:         Mon, 21 Feb 1994 10:10:58 -0800
  1141. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1142. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1143. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1144. Subject:      Re: Rinaldi's Chooser RESET Problem
  1145.  
  1146. Peter Wilson writes:
  1147. >
  1148. >I am having a problem using Rinaldi's Chooser 1.7 available
  1149. >on the Frontier Extras? 5/93 disk.
  1150. >
  1151. >I have a System 7.1 Installer script that (briefly)
  1152. > * mounts an Appleshare volume
  1153. > * renames the existing System Folder to Old System Folder
  1154. > * copies over a new System 7.1 Folder
  1155. > * uses chooser.getCurrentPrinter () to determine the
  1156. >   PrtDriver,SelectedLaser, and PrtZone currently active.
  1157. > * disables the old System Folder (by moving the Finder)
  1158. > * Opens & closes the new System Folder to bless it.
  1159. > * uses chooser.choosePrinter(PrtDriver,SelectedLaser,PrtZone)
  1160. >   to reset the previously defined LaserWriter.
  1161. >
  1162. >After RESTART, the new System Folder is ACTIVE, but the old
  1163. >and now reset laserwriter selection is NOT ACTIVE as it should
  1164. >be. This reset operation worked fine in System 7.0.1 with
  1165. >Laserwriter 7.1.1 but not it seems with 7.1 and 7.1.2 LaserW.
  1166. >
  1167.  
  1168. Various things happen when the Chooser is used to select a printer...more
  1169. with LaserWriter 8.x than before.  That may be part of the problem.
  1170.  
  1171. However, SOME of the things that happen are done in the current System
  1172. file...that's the open one, not necessarily the one which will be used on
  1173. the next Mac startup.
  1174.  
  1175. I would be tempted to arrange for the last step:
  1176.  
  1177. > * uses chooser.choosePrinter(PrtDriver,SelectedLaser,PrtZone)
  1178. >   to reset the previously defined LaserWriter.
  1179.  
  1180. to be deferred until after the Restart.  How?
  1181.  
  1182. One way would be to set up a one-time task in the Scheduler (supplied with
  1183. Frontier 3.0, fixed slightly in Frontier 3.0.1 in connection with errors in
  1184. one-time tasks), which would do the chooser.choosePrinter step.  Set the
  1185. time for the task to be just after the restart you are about to do.
  1186.  
  1187. Keep in mind that this is a sort of temporary solution...when the new
  1188. printing architecture happens (it's coming soon...available now with the
  1189. QuickDraw GX betas) everything changes:
  1190.    1.  print jobs can be moved from printer to printer after they are
  1191. spooled (even drastic moves, like PostScript printer to QuickDraw printer
  1192. or vice versa).
  1193.  
  1194.    2.  the default printer is selected from a Finder menu
  1195.  
  1196.    3.  The Chooser's part in printing is pretty much gone...it makes
  1197. "desktop printers" [yet more icons for your desktop:  double click one, and
  1198. see the print queue for that printer; drag a document onto a desktop
  1199. printer and the doc's application prints the doc to that printer, etc]
  1200.  
  1201.   --John
  1202.  
  1203. - --
  1204. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1205. The opinions expressed here are those of a large tree in my back yard.
  1206. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  1207. =========================================================================
  1208. Date:         Mon, 21 Feb 1994 11:37:21 -0800
  1209. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1210. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1211. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  1212. Subject:      Re: List of Aladdin Translators
  1213.  
  1214. At  3:32 AM 2/21/94 -0500, Chris Brannon wrote:
  1215. >Where can I get a list of the Aladdin translator names that I can use w/i
  1216. >applescript?
  1217. >
  1218.         At the moment there isn't an official one.  We know that lots of
  1219. people are now trying to script the translators and we are trying to come
  1220. up with some info on doing it.
  1221.  
  1222.  
  1223. >"BinHex4" seems to work for the BinHex4 translator, and "tar" works for the
  1224. >tar translator, but "UUcode" and "Unix Compress" don't seem to work for
  1225. >their respective translators.
  1226. >
  1227.         Check out the 'Name' resource in each translator.
  1228.  
  1229. Leonard
  1230.  
  1231. - -----------------------------------------------------------------------------
  1232. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  1233. Director of Advanced Technology         AppleLink:      MACgician
  1234. Aladdin Systems, Inc.                   GEnie:          MACgician
  1235. =========================================================================
  1236. Date:         Mon, 21 Feb 1994 11:38:11 -0800
  1237. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1238. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1239. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  1240. Subject:      Re: Eudor, working with windows, and AppleScript
  1241.  
  1242. At  1:02 AM 2/21/94 -0500, Bob Snyder wrote:
  1243. >How would I go about pulling either the contents of a window or the
  1244. >selected area of a window via AppleScript from Eudora (2.02beta)?
  1245. >
  1246.         There is no way to get the currently selected text, Steve hasn't
  1247. put that in yet (at least as of 2.0.1, but no notes about it for 2.0.2b).
  1248.  
  1249.         As to the current message, you can refer to it in AppleScript as
  1250. 'message named ""', or in Frontier 'message[""]'.
  1251.  
  1252. Leonard
  1253.  
  1254. - -----------------------------------------------------------------------------
  1255. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  1256. Director of Advanced Technology         AppleLink:      MACgician
  1257. Aladdin Systems, Inc.                   GEnie:          MACgician
  1258. =========================================================================
  1259. Date:         Mon, 21 Feb 1994 14:20:02 -0800
  1260. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1261. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1262. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  1263. Subject:      AppleScript Distribution License = $500
  1264.  
  1265. :-)
  1266. OK, here's the scoop. If I was to create a product that was just a blank
  1267. AppleScript file with some comments in it, I could license AppleScript to
  1268. distribute with the product. To do so, I would have to pay Apple a yearly
  1269. fee of $500. Now, as of yet I do not know if that license includes all the
  1270. same software that you would get through APDA but chances are good that
  1271. they would require me to distribute everything. This might be a viable way
  1272. to get everyone an upgrade for cheap bucks. More info later when I see the
  1273. paperwork from Apple software licensing. I don't know if I am going to want
  1274. to do this but I'll keep looking into it and let you know what I discover.
  1275. :-)
  1276. Kee Nethery
  1277.  
  1278. _________________________________________________________________
  1279. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  1280. A newly poured 14.4 Kbps information superhighway onramp.
  1281. =========================================================================
  1282. Date:         Mon, 21 Feb 1994 19:43:24 -0600
  1283. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1284. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1285. From:         Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
  1286. Subject:      Re: AppleScript Distribution License = $500
  1287.  
  1288. >:-)
  1289. >OK, here's the scoop. If I was to create a product that was just a blank
  1290. >AppleScript file with some comments in it, I could license AppleScript to
  1291. >distribute with the product. To do so, I would have to pay Apple a yearly
  1292. >fee of $500.
  1293.  
  1294. There is a very real possibility that the next version of MacHTTP will ship
  1295. with AppleScript bundled with it. I just have to demonstrate to the powers
  1296. that be that the nominal shareware fee will recoup the $500 license fee.
  1297.  
  1298. - -----------------------------------------------------------------------
  1299. Chuck Shotton
  1300. cshotton@oac.hsc.uth.tmc.edu                           "I am NOT here."
  1301. =========================================================================
  1302. Date:         Mon, 21 Feb 1994 22:41:26 -0500
  1303. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1304. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1305. From:         Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
  1306. Subject:      Re: Eudor, working with windows, and AppleScript
  1307.  
  1308. At 11:38 AM 2/21/94 -0800, Leonard Rosenthol wrote:
  1309. >At  1:02 AM 2/21/94 -0500, Bob Snyder wrote:
  1310. >>How would I go about pulling either the contents of a window or the
  1311. >>selected area of a window via AppleScript from Eudora (2.02beta)?
  1312. >>
  1313. >        There is no way to get the currently selected text, Steve hasn't
  1314. >put that in yet (at least as of 2.0.1, but no notes about it for 2.0.2b).
  1315. >
  1316. >        As to the current message, you can refer to it in AppleScript as
  1317. >'message named ""', or in Frontier 'message[""]'.
  1318.  
  1319. This will pull a received message.  I'm looking to snag (and later replace)
  1320. the text in a Sending window, which hasn't been queued yet.  Is there a way
  1321. to do this?
  1322.  
  1323. Basically, what I'm trying to do is write a script that can be called from
  1324. OSA Menu that will suck the text out of Eudora, submit it to RIPEM Mac to
  1325. be encrypted/signed, and drop it back in the Sending window with the
  1326. appropriate PEM headers.
  1327.  
  1328. Bob
  1329.  
  1330. - --
  1331. Bob Snyder N2KGO                                      MIME, RIPEM mail accepted
  1332. snyderra@dunx1.ocs.drexel.edu                        finger for RIPEM public key
  1333. <A HREF="http://dunx1.ocs.drexel.edu:1972/~snyderra/ras.html">Select Me</A>
  1334. =========================================================================
  1335. Date:         Tue, 22 Feb 1994 09:10:28 EST
  1336. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1337. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1338. From:         Eric Andersen <erica2669@AOL.COM>
  1339. Subject:      remove
  1340.  
  1341. Remove EricA2669@qol.com
  1342. =========================================================================
  1343. Date:         Tue, 22 Feb 1994 09:26:04 EST
  1344. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1345. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1346. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  1347. Subject:      Admin Stuff
  1348.  
  1349. Here's a mini-FAQ:
  1350.  
  1351. 1) How do I signoff MacScripting?
  1352.  
  1353. Send mail to LISTSERV@dartmouth.edu with the following in the body of the
  1354. message:
  1355.  
  1356. SIGNOFF MACSCRPT
  1357.  
  1358. Note: you must do this from the account from which you subscribed.
  1359.  
  1360.  
  1361. 2) How do I receive this in a daily digest?
  1362.  
  1363. Send mail to LISTSERV@dartmouth.edu with the following in the body of the
  1364. messsage:
  1365.  
  1366. SET MACSCRPT DIGEST
  1367.  
  1368.  
  1369. 3) What else can the LISTSERV do that is neat?
  1370.  
  1371. To find out, send mail to LISTSERV@dartmouth.edu with the following in the
  1372. body of the messsage:
  1373.  
  1374. INFO REFCARD
  1375.  
  1376.  
  1377. 4) How can I get basic help using LISTSERV?
  1378.  
  1379. Send mail to LISTSERV@dartmouth.edu with the following in the body of the
  1380. messsage:
  1381.  
  1382. HELP
  1383.  
  1384.  
  1385. Hope this helps!
  1386.  
  1387. - -A
  1388. =========================================================================
  1389. Date:         Tue, 22 Feb 1994 12:16:15 -0800
  1390. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1391. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1392. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  1393. Subject:      Re: Eudor, working with windows, and AppleScript
  1394.  
  1395. >At 11:38 AM 2/21/94 -0800, Leonard Rosenthol wrote:
  1396. >>At  1:02 AM 2/21/94 -0500, Bob Snyder wrote:
  1397. >>>How would I go about pulling either the contents of a window or the
  1398. >>>selected area of a window via AppleScript from Eudora (2.02beta)?
  1399. >>>
  1400. >>        There is no way to get the currently selected text, Steve hasn't
  1401. >>put that in yet (at least as of 2.0.1, but no notes about it for 2.0.2b).
  1402. >>
  1403. >>        As to the current message, you can refer to it in AppleScript as
  1404. >>'message named ""', or in Frontier 'message[""]'.
  1405. >
  1406. >This will pull a received message.  I'm looking to snag (and later replace)
  1407. >the text in a Sending window, which hasn't been queued yet.  Is there a way
  1408. >to do this?
  1409. >
  1410.         Well, I just did this in Frontier and it worked just fine getting
  1411. the text of this message that I am writing to you!   So it does work on ANY
  1412. type of message.  Perhaps if you sent the script you are using, that might
  1413. help.
  1414.  
  1415.  
  1416. >Basically, what I'm trying to do is write a script that can be called from
  1417. >OSA Menu that will suck the text out of Eudora, submit it to RIPEM Mac to
  1418. >be encrypted/signed, and drop it back in the Sending window with the
  1419. >appropriate PEM headers.
  1420. >
  1421.         Check out the Frontier Install file - I have a complete set of
  1422. scripts for doing that included in the shared menu!  In fact, here is the
  1423. signMessage() script from the examples.RIPEM table.
  1424.  
  1425. on signMessage() {
  1426.         with eudora {
  1427.                 local (msgObj, curMessage=3D"", newMessage =3D "");
  1428.  
  1429.                 msgObj =3D getCurrentMessageObject(); =AB find the sucker!
  1430.                 curMessage =3D examples.getEntireMessage(msgObj); =AB get=
  1431.  the text
  1432.                 bundle { =AB deal with RIPEM
  1433.                         if (!RIPEM.isRunning()) {
  1434.                                 RIPEM.launch()};
  1435.                         RIPEM.bringToFront();
  1436.                         newMessage =3D RIPEM.sign(curMessage); =AB sign it!
  1437.                         Eudora.bringToFront()};
  1438.                 setMessageText(msgObj, newMessage)}}
  1439.  
  1440. And here is the getCurrentMessageObject which does just I suggested:
  1441. on getCurrentMessageObject() {
  1442.         with objectModel, Eudora, eventInfo {
  1443.                 return(message[""])}}
  1444.  
  1445. Leonard
  1446.  
  1447. - ----------------------------------------------------------------------------=
  1448. - -
  1449. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  1450. Director of Advanced Technology         AppleLink:      MACgician
  1451. Aladdin Systems, Inc.                   GEnie:          MACgician
  1452. =========================================================================
  1453. Date:         Tue, 22 Feb 1994 21:56:00 GMT
  1454. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1455. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1456. From:         "Minshull, Mark" <MINSHULL.M@APPLELINK.APPLE.COM>
  1457. Subject:      Re2: "parameterizing" tell sta
  1458.  
  1459. Michael Compton <compton@ptolemy-ethernet.arc.nasa.gov> writes:
  1460.  
  1461. >tell application myApp of machine myMachine of zone myZone
  1462. > <body of tell block>
  1463. >end tell
  1464. >
  1465. >I've found that the above works only if the <body> contains only generic
  1466. >(i.e.non application-specific) statements.  If I try to include a statement
  1467. >specific to myApp, it won't compile.
  1468.  
  1469. Michael:
  1470.  
  1471. Have you tried:
  1472.  
  1473.     tell application "Excel"  --  a local copy of the app you are targeting
  1474.         tell application myApp of machine myMachine of zone myZone
  1475.              <body of tell block>
  1476.         end tell
  1477.     end tell
  1478.  
  1479. This tricks the compiler into using the correct application-specific terms
  1480. within the inner tell.  I assume that you are using references (variables) for
  1481. "myApp"; otherwise this should work transparently.
  1482.  
  1483. Mark
  1484. - --
  1485. Mark Minshull                      :
  1486. OpenDoc Engineering Manager        :          Apple usually doesn't care
  1487. Apple Computer, Inc.               :          what I say... When they do
  1488. 1 Infinite Loop, MS 303-3A         :          my opinions are my own
  1489. =========================================================================
  1490. Date:         Tue, 22 Feb 1994 13:56:00 -0700
  1491. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1492. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1493. From:         "Dannette Coleman,
  1494.               Keyano College (403) 791 4822" <S203022@ACAD.KEYANOC.AB.CA>
  1495. Subject:      Re: Admin Stuff
  1496.  
  1497. I got your message in Fort McMurray, Alberta, Canada, just letting
  1498. you know, I don't think the people you wanted to get this message got it!
  1499. =========================================================================
  1500. Date:         Tue, 22 Feb 1994 15:17:59 PST
  1501. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1502. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1503. From:         Michael Compton <compton@PTOLEMY.ARC.NASA.GOV>
  1504. Subject:      Re2: "parameterizing" tell sta
  1505. In-Reply-To:  "Minshull, Mark"'s message of Tue,
  1506.               22 Feb 1994 21:56:00 GMT <9402222304.AA25522@ptolemy.arc.nasa.gov>
  1507.  
  1508. Thanks, Mark, I'll give your suggestion a try.
  1509. - -Michael
  1510. =========================================================================
  1511. Date:         Tue, 22 Feb 1994 22:05:33 -0500
  1512. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1513. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1514. From:         Chris Brannon <cbbst+@PITT.EDU>
  1515. Subject:      old digests
  1516.  
  1517. Could someone mail to me the Mac Scripting digests that came out before
  1518. Feb. 20 (I think there were just two)?
  1519.  
  1520. Somehow I managed to delete them unread.
  1521.  
  1522. Thanks in advance!
  1523.  
  1524.  
  1525. Regards,...Chris
  1526. - ---------------------------------------------------------------------------
  1527. Christopher B. Brannon                             University of Pittsburgh
  1528. cbbst+@pitt.edu           THE*TRUTH*IS*OUT*THERE          Political Science
  1529. =========================================================================
  1530. Date:         Wed, 23 Feb 1994 10:09:37 +0100
  1531. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1532. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1533. From:         bob jansen <jansen@SYD.DIT.CSIRO.AU>
  1534. Subject:      Re: MS Admin II
  1535.  
  1536. >>
  1537. >> OK, this is the second message. If you received two copies of this, let me
  1538. >> know and I will see what I can do.
  1539. >>
  1540. >> Hopefully the problems are fixed.
  1541. >>
  1542. >> -A
  1543. >>
  1544.  
  1545. Me too, or should that read me two
  1546.  
  1547. bobj
  1548.  
  1549. - -------------------------------------------------------
  1550. Dr. Bob Jansen
  1551. email: jansen@syd.dit.csiro.au
  1552.  
  1553. Address until March 1994
  1554. CNRS Institut des Textes et Manuscrits Modernes,
  1555. 61, rue de Richelieu, 75084 Paris Cedex 02, France
  1556. Phone (+33 1) 42 96 30 94  Fax (+33 1) 47 03 89 40
  1557.  
  1558. Normal address
  1559. CSIRO Division of Information Technology
  1560. Physical: Building E6B, Macquarie University Campus, North Ryde NSW 2113
  1561. Postal: Locked Bag 17, North Ryde NSW 2113
  1562. Phone: +612 325 3100  Fax: +612 325 3101
  1563. - -------------------------------------------------------
  1564. =========================================================================
  1565. Date:         Wed, 23 Feb 1994 10:00:03 U
  1566. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1567. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1568. From:         Chuck Pliske <chuckp@U.WASHINGTON.EDU>
  1569. Subject:      Scripting Applemail files
  1570.  
  1571. I'm interested in using Frontier or AppleScript to process the numerous files
  1572. I am now getting/saving thru the star nine gateway with the standard Apple
  1573. mailer.  Does anyone know if those files can be "decoded" with scripts into
  1574. their component parts?
  1575.  
  1576. For example I would like to create a droplet that appends the text of a
  1577. letter into a file whose name is the "from" parameter.
  1578.  
  1579. Thanks,
  1580.  
  1581. Chuck Pliske
  1582. =========================================================================
  1583. Date:         Wed, 23 Feb 1994 13:25:08 -0500
  1584. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1585. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1586. From:         Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
  1587. Subject:      Re> Scripting Applemail files
  1588.  
  1589. Chuck,
  1590.  
  1591. I'm assuming you're using PowerTalk, since you refer to AppleMail in your
  1592. subject. If this is not the case, disregard this message!
  1593.  
  1594. QuickMail AOCE is scriptable, to a certain extent. For instance, the
  1595. following script will extract the textual portion of an AppleMail message
  1596. which QM AOCE has opened:
  1597.  
  1598. tell application "QuickMail(tm) AOCE"
  1599.         copy (QM Field 1) to theText
  1600. end tell
  1601.  
  1602. When QM opens an AppleMail letter, the contents are put in one big scrolling
  1603. field (QM Field 1). However, and this has caused me a lot of trouble, QM
  1604. doesn't handle addresses in the header in an intelligible way. So, the
  1605. following script:
  1606.  
  1607. tell application "QuickMail(tm) AOCE"
  1608.         tell QMAOCEMailer 1
  1609.                 copy Sender to theSender
  1610.         end tell
  1611. end tell
  1612.  
  1613. results in gibberish that I can't even paste into this message. (*Stepping up
  1614. on a soapbox*) I mailed CE and they gave me some lame excuse about Apple
  1615. refusing to tell them how PowerTalk addresses were done. This may be the case
  1616. for getting the name string from an address out of the mailer, but Greg Quinn
  1617. has osaxen that, given a path to a business card, will return the address!
  1618. (*Stepping down off the soapbox*)
  1619.  
  1620. Anyway, this would do part of what you want, but not all. However, you could
  1621. always parse the header (which is usually stuck at the end of the textual
  1622. message) for the "From:" tag, which would give you who it came from.
  1623.  
  1624. Jay
  1625.  
  1626. +---------------------------------------+----------------------------------+
  1627. | --------------+ Jay M. Martin         | All ideas here are my own and    |
  1628. |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  1629. |   | ----------+ Development Training  |                  martin@aidt.edu |
  1630. |   +---------------------------------- | (But what do they know?)         |
  1631. +---------------------------------------+----------------------------------+
  1632. - ----- From: Macintosh Scripting Systems, Feb 23, 1994 ------
  1633.  
  1634. I'm interested in using Frontier or AppleScript to process the numerous files
  1635. I am now getting/saving thru the star nine gateway with the standard Apple
  1636. mailer.  Does anyone know if those files can be "decoded" with scripts into
  1637. their component parts?
  1638.  
  1639. For example I would like to create a droplet that appends the text of a
  1640. letter into a file whose name is the "from" parameter.
  1641.  
  1642. Thanks,
  1643.  
  1644. Chuck Pliske
  1645. =========================================================================
  1646. Date:         Wed, 23 Feb 1994 14:51:21 U
  1647. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1648. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1649. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  1650. Subject:      Re: Scripting Applemail file
  1651.  
  1652.         Reply to:   RE>Scripting Applemail files
  1653. > I'm interested in using Frontier or AppleScript to process the numerous
  1654. > files I am now getting/saving thru the star nine gateway with the
  1655. > standard Apple mailer.  Does anyone know if those files can be "decoded"
  1656. > with scripts into their component parts?
  1657. >
  1658. > For example I would like to create a droplet that appends the text of a
  1659. > letter into a file whose name is the "from" parameter.
  1660.  
  1661. Frontier is quite adept at parsing text files but I wouldn't expect that you
  1662. could do it using AppleMail since it's not scriptable.  Once the message has
  1663. been saved to a file outside the In-Box it becomes fair game though.
  1664. Does anyone know whether the Scriptable Finder is supposed to offer access to
  1665. system extensions like the Catalogs and Mail extensions as well as basic Finder
  1666. operations? How about Control Panels?
  1667.  
  1668. Mark Stewart
  1669. BIAD-Research Imaging Center
  1670. UTHSCSA
  1671. stewart@uthscsa.edu
  1672. =========================================================================
  1673. Date:         Wed, 23 Feb 1994 13:45:23 -0800
  1674. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1675. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1676. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  1677. Subject:      Re: Scripting Applemail files
  1678.  
  1679. >I'm interested in using Frontier or AppleScript to process the numerous files
  1680. >I am now getting/saving thru the star nine gateway with the standard Apple
  1681. >mailer.  Does anyone know if those files can be "decoded" with scripts into
  1682. >their component parts?
  1683. >
  1684.         I know that the latest version of the GTQ OSAX library contains a
  1685. bunch of items for PowerTalk, but I haven't had a chance to try it yet.  It
  1686. may indeed have the items you need for querying the mailbox.
  1687.  
  1688. Leonard
  1689.  
  1690. - -----------------------------------------------------------------------------
  1691. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  1692. Director of Advanced Technology         AppleLink:      MACgician
  1693. Aladdin Systems, Inc.                   GEnie:          MACgician
  1694. =========================================================================
  1695. Date:         Wed, 23 Feb 1994 18:50:56 +0000
  1696. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1697. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1698. From:         Dave Harrison <harrison@SHIVA.COM>
  1699. Subject:      Newbie FinderMenu Question
  1700.  
  1701. Hello,
  1702.  
  1703. I have installed FinderMenu 3.0, which came on my 3.01 disk two.  Or at least
  1704. I think I have installed FinderMenu.  I never get a "Scripts" item in my
  1705. menubar.  Anyone have any ideas?  Is this as simple as an INIT conflict or
  1706. am I missing something basic?
  1707.  
  1708. Thanks in advance,
  1709.  
  1710. Dave Harrison
  1711. Shiva Corporation
  1712. =========================================================================
  1713. Date:         Wed, 23 Feb 1994 18:27:33 -0800
  1714. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1715. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1716. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  1717. Subject:      Frontier Scripts for Eudora
  1718.  
  1719. I am working on an update for the Eudora Install file for Frontier, so if
  1720. any of you have an neat example scripts, or suggestions/improvements for
  1721. the next version of my install file - PLEASE send them my way!!
  1722.  
  1723. Leonard
  1724.  
  1725. - -----------------------------------------------------------------------------
  1726. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  1727. Director of Advanced Technology         AppleLink:      MACgician
  1728. Aladdin Systems, Inc.                   GEnie:          MACgician
  1729. =========================================================================
  1730. Date:         Wed, 23 Feb 1994 22:34:39 -0500
  1731. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1732. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1733. From:         Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
  1734. Subject:      Re: Eudora, working with windows, and AppleScript
  1735.  
  1736. At 12:16 PM 2/22/94 -0800, Leonard Rosenthol wrote:
  1737. >>At 11:38 AM 2/21/94 -0800, Leonard Rosenthol wrote:
  1738. >>>At  1:02 AM 2/21/94 -0500, Bob Snyder wrote:
  1739. >>>        There is no way to get the currently selected text, Steve hasn't
  1740. >>>put that in yet (at least as of 2.0.1, but no notes about it for 2.0.2b).
  1741. >>>
  1742. >>>        As to the current message, you can refer to it in AppleScript as
  1743. >>>'message named ""', or in Frontier 'message[""]'.
  1744. >>
  1745. >>This will pull a received message.  I'm looking to snag (and later replace)
  1746. >>the text in a Sending window, which hasn't been queued yet.  Is there a way
  1747. >>to do this?
  1748. >>
  1749. >        Well, I just did this in Frontier and it worked just fine getting
  1750. >the text of this message that I am writing to you!   So it does work on ANY
  1751. >type of message.  Perhaps if you sent the script you are using, that might
  1752. >help.
  1753.  
  1754. I found out what it was:  I was trying to pull just 'message named ""', and
  1755. Eudora won't give this.  It will give 'field named "" of message named ""'
  1756. though.
  1757.  
  1758. Now Eudora is crashing on me when I run it... :P  Here's the script (I know
  1759. it doesn't error check well yet):
  1760.  
  1761. tell application "Eudora 2.0.2b13-3.94"
  1762.         copy Field named "" of Message named "" to plainText
  1763.         tell application "RIPEM Mac"
  1764.                 activate
  1765.                 Encrypt data plainText mode 3 with interact
  1766.                 copy the result to cipherText
  1767.         end tell
  1768.         activate
  1769.         copy cipherText to Field named "" of Message named ""
  1770. end tell
  1771.  
  1772.  
  1773. Bob
  1774.  
  1775. - --
  1776. Bob Snyder N2KGO                                      MIME, RIPEM mail accepted
  1777. snyderra@dunx1.ocs.drexel.edu                        finger for RIPEM public key
  1778. <A HREF="http://dunx1.ocs.drexel.edu:1972/~snyderra/ras.html">Select Me</A>
  1779. =========================================================================
  1780. Date:         Wed, 23 Feb 1994 21:22:08 -0800
  1781. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1782. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1783. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1784. Subject:      Re: Newbie FinderMenu Question
  1785.  
  1786. At 18:50 2/23/94 +0000, Dave Harrison wrote:
  1787.  
  1788. >I have installed FinderMenu 3.0, which came on my 3.01 disk two.  Or at lea=
  1789. st
  1790. >I think I have installed FinderMenu.  I never get a "Scripts" item in my
  1791. >menubar.  Anyone have any ideas?  Is this as simple as an INIT conflict or
  1792. >am I missing something basic?
  1793.  
  1794. =46or the Scripts menu to appear in Finder's menubar, you need:
  1795.   1.  The FinderMenu Extension in the Extensions folder.  This is a
  1796. combination INIT and faceless background application.
  1797.  
  1798.   2.  A menubar defined for =9FNDR (that's an option-f, then NDR, regardless
  1799. of what the Internet may do to it), in the Frontier (or Runtime) database.
  1800. The installer for FinderMenu should take care of that.
  1801.  
  1802.   3.  The Frontier (or Runtime) mentioned above running.
  1803.  
  1804.   4.  (Somewhat optional)...a FinderMenu Prefs file in the Preferences
  1805. folder (the installer should have done that, too).  This only becomes an
  1806. issue if you edit the title of the Scripts menu to use one of the Icons
  1807. contained in the FinderMenu Prefs file (see the docs, or ask).  If you do
  1808. that and don't have the prefs file, there will be a startup crash...that
  1809. version of FinderMenu is broken in that regard...a later version is OK, but
  1810. wasn't ready to be included with the Frontier 3.0 shipment...not enough
  1811. testing.
  1812.  
  1813.    If you have all that, and still don't see a Scripts menu in Finder,
  1814. we'll need to go into this more deeply...feel free to write to me outside
  1815. the group.
  1816.  
  1817.    --John
  1818.  
  1819. - --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  1820.   UserLand Software support
  1821. =========================================================================
  1822. Date:         Wed, 23 Feb 1994 22:48:07 -0800
  1823. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1824. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1825. From:         David Ray <daver@NETCOM.COM>
  1826. Subject:      Getting serial port status in AS
  1827.  
  1828. Hi listPeople,
  1829.  
  1830. I'm trying to figure out a way to use AppleScript to get the status
  1831. of the serial ports (in use, not in use). Can this be done? I saw a couple
  1832. OSAXen that query the Gestalt manager, but none of the Gestalt calls that
  1833. they have been set up to do will return information about whether one is
  1834. busy.
  1835.  
  1836. For that matter, can this be done in any scripting language?
  1837.  
  1838. Thanks-
  1839.  
  1840. Dave Ray
  1841. daver@netcom.com
  1842. =========================================================================
  1843. Date:         Wed, 23 Feb 1994 22:49:50 -0800
  1844. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1845. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1846. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  1847. Subject:      Re: Scripting Applemail files
  1848.  
  1849. >I'm interested in using Frontier or AppleScript to process the numerous files
  1850. >I am now getting/saving thru the star nine gateway with the standard Apple
  1851. >mailer.  Does anyone know if those files can be "decoded" with scripts into
  1852. >their component parts?
  1853. >
  1854. >For example I would like to create a droplet that appends the text of a
  1855. >letter into a file whose name is the "from" parameter.
  1856. >
  1857.  
  1858. I have just started playing with Beyond Mail Rules and it does give you
  1859. access to the address. You can decode them into their component parts but I
  1860. have to say that Beyond Mail is not quite as stable as I would prefer.
  1861.  
  1862. I have only played with opening letters within the In Tray. No idea if you
  1863. can drag them to a droplet outside of the In Tray.
  1864.  
  1865. For sure you could create a Beyond Mail rule that does what you desire
  1866. automatically as new mail arrives. You could skip the process of dragging
  1867. it onto a droplet.
  1868.  
  1869. Kee Nethery
  1870.  
  1871. _________________________________________________________________
  1872. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  1873. A newly poured 14.4 Kbps information superhighway onramp.
  1874. =========================================================================
  1875. Date:         Thu, 24 Feb 1994 11:25:50 GMT0BST
  1876. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1877. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1878. From:         "Alistair G. Lowe-Norris" <agl1@LEICESTER.AC.UK>
  1879. Subject:      The Basics
  1880.  
  1881. Hi all,
  1882.  
  1883. I've just joined this list and need a bit of help. Can anyone give me
  1884. the location of a list FAQ if there is one; alternatively can someone
  1885. explain briefly what the various scripting languages are and what
  1886. they are good at. I am getting and understanding lots of messages but
  1887. am missing the basic building block background to this subject.
  1888.  
  1889. ftp'able files welcomed too.
  1890.  
  1891. Thanks in advance.
  1892.  
  1893. Alistair.
  1894. - --
  1895. - ---------------------------------------------------------------------------
  1896. | Alistair G. Lowe-Norris, Systems Programmer UK:agl1@uk.ac.leicester     |
  1897. | Computer Centre, Leicester University,      Non-UK:agl1@leicester.ac.uk |
  1898. | University Road, Leicester LE1. 7RH., U.K.                              |
  1899. |                                                                         |
  1900. | UK       Tel: (0533) 522250     Fax: (0533) 525027                      |
  1901. | Non-UK   Tel: +44 (533) 522250  Fax: +44 (533) 525027                   |
  1902. - ---------------------------------------------------------------------------
  1903. =========================================================================
  1904. Date:         Thu, 24 Feb 1994 09:21:15 CST
  1905. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1906. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1907. From:         Charles Wiltgen <wiltgen%barinc@HEMKOSYS.COM>
  1908. Subject:      Forwarded: -108 and -1753 errors
  1909.  
  1910. Sorry this message got so long to get here -- I hope someone remembers the
  1911. original post about the -108 error...
  1912.  
  1913.  
  1914. Errors -108 and -1753 are the *exact* same errors I got with FolderWatcher.
  1915. Joe Zobkiw (zobkiw@datawatch.com) and I never figured out the -1753 error,
  1916. but the -108 error was solved (I think -- I can't use it much because of the
  1917. - -1753 error) by upping the SIZE resource to (in his case) 256K from 176K or
  1918. so.
  1919.  
  1920. Of course, it could be all a coincidence, but FolderWatcher and OSA Menu
  1921. essentially do the same thing different ways.
  1922.  
  1923.  
  1924.  
  1925. +----------------------------------------------------------------------+
  1926. | "I want to die in my sleep, like my Grandfather.  Not screaming,     |
  1927. |  like the passengers in his car."                                    |
  1928. |--------------------------------------------------- Charles Wiltgen --|
  1929. |                                                    cwiltgen@aol.com  |
  1930. +----------------------------------------------------------------------+
  1931. =========================================================================
  1932. Date:         Thu, 24 Feb 1994 09:57:28 -0600
  1933. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1934. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1935. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1936. Subject:      Re: The Basics
  1937. In-Reply-To:  Your message of "Thu,
  1938.               24 Feb 94 11:25:50 GMT." <9402241421.AA08314@lks.lks.csi.com>
  1939.  
  1940. > Hi all,
  1941. >
  1942. > I've just joined this list and need a bit of help. Can anyone give me
  1943. > the location of a list FAQ if there is one; alternatively can someone
  1944. > explain briefly what the various scripting languages are and what
  1945. > they are good at. I am getting and understanding lots of messages but
  1946. > am missing the basic building block background to this subject.
  1947. >
  1948. > ftp'able files welcomed too.
  1949. >
  1950. > Thanks in advance.
  1951.  
  1952. Alistair,
  1953.  
  1954. You'll find an AppleScript FAQ at
  1955. gaea.kgs.ukans.edu/applescript/00applescript.faq. If you have Anarchie 1.1.1,
  1956. there is a bookmark set for it. The faq isn't complete yet, but you should get
  1957. your question about the various scripting languages answered. You should
  1958. probably get one of the third party books or the Scripting Language Guide for
  1959. the building blocks. These are also listed in the faq.
  1960.  
  1961. Hope this helps.
  1962.  
  1963. pf
  1964.  
  1965.  
  1966. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1967. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  1968.  
  1969. "Bad spellers of the world, untie!"
  1970.                                         --Graffito
  1971. =========================================================================
  1972. Date:         Thu, 24 Feb 1994 10:55:44 -0500
  1973. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1974. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1975. From:         Robert Parker <parker@GDLS.COM>
  1976. Subject:      Re: Scripting Applemail files
  1977. In-Reply-To:  <199402231804.NAA08380@dartvax.dartmouth.edu>
  1978.  
  1979. please remove me from your distribution
  1980. parker@gdls.com
  1981. thanks
  1982.  
  1983. On Wed, 23 Feb 1994, Chuck Pliske wrote:
  1984.  
  1985. > I'm interested in using Frontier or AppleScript to process the numerous files
  1986. > I am now getting/saving thru the star nine gateway with the standard Apple
  1987. > mailer.  Does anyone know if those files can be "decoded" with scripts into
  1988. > their component parts?
  1989. >
  1990. > For example I would like to create a droplet that appends the text of a
  1991. > letter into a file whose name is the "from" parameter.
  1992. >
  1993. > Thanks,
  1994. >
  1995. > Chuck Pliske
  1996. =========================================================================
  1997. Date:         Thu, 24 Feb 1994 10:56:58 -0500
  1998. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1999. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2000. From:         Robert Parker <parker@GDLS.COM>
  2001. Subject:      Re: Re> Scripting Applemail files
  2002. In-Reply-To:  <199402231927.OAA19464@dartvax.dartmouth.edu>
  2003.  
  2004. please remove me from distribution
  2005. parker@gdls.com
  2006. thanks
  2007.  
  2008.  
  2009. On Wed, 23 Feb 1994, Jay Martin wrote:
  2010.  
  2011. > Chuck,
  2012. >
  2013. > I'm assuming you're using PowerTalk, since you refer to AppleMail in your
  2014. > subject. If this is not the case, disregard this message!
  2015. >
  2016. > QuickMail AOCE is scriptable, to a certain extent. For instance, the
  2017. > following script will extract the textual portion of an AppleMail message
  2018. > which QM AOCE has opened:
  2019. >
  2020. > tell application "QuickMail(tm) AOCE"
  2021. >         copy (QM Field 1) to theText
  2022. > end tell
  2023. >
  2024. > When QM opens an AppleMail letter, the contents are put in one big scrolling
  2025. > field (QM Field 1). However, and this has caused me a lot of trouble, QM
  2026. > doesn't handle addresses in the header in an intelligible way. So, the
  2027. > following script:
  2028. >
  2029. > tell application "QuickMail(tm) AOCE"
  2030. >         tell QMAOCEMailer 1
  2031. >                 copy Sender to theSender
  2032. >         end tell
  2033. > end tell
  2034. >
  2035. > results in gibberish that I can't even paste into this message. (*Stepping up
  2036. > on a soapbox*) I mailed CE and they gave me some lame excuse about Apple
  2037. > refusing to tell them how PowerTalk addresses were done. This may be the case
  2038. > for getting the name string from an address out of the mailer, but Greg Quinn
  2039. > has osaxen that, given a path to a business card, will return the address!
  2040. > (*Stepping down off the soapbox*)
  2041. >
  2042. > Anyway, this would do part of what you want, but not all. However, you could
  2043. > always parse the header (which is usually stuck at the end of the textual
  2044. > message) for the "From:" tag, which would give you who it came from.
  2045. >
  2046. > Jay
  2047. >
  2048. > +---------------------------------------+----------------------------------+
  2049. > | --------------+ Jay M. Martin         | All ideas here are my own and    |
  2050. > |   +---------- | Alabama Industrial    | in no way reflect my employer's. |
  2051. > |   | ----------+ Development Training  |                  martin@aidt.edu |
  2052. > |   +---------------------------------- | (But what do they know?)         |
  2053. > +---------------------------------------+----------------------------------+
  2054. > ----- From: Macintosh Scripting Systems, Feb 23, 1994 ------
  2055. >
  2056. > I'm interested in using Frontier or AppleScript to process the numerous files
  2057. > I am now getting/saving thru the star nine gateway with the standard Apple
  2058. > mailer.  Does anyone know if those files can be "decoded" with scripts into
  2059. > their component parts?
  2060. >
  2061. > For example I would like to create a droplet that appends the text of a
  2062. > letter into a file whose name is the "from" parameter.
  2063. >
  2064. > Thanks,
  2065. >
  2066. > Chuck Pliske
  2067. =========================================================================
  2068. Date:         Thu, 24 Feb 1994 10:58:12 -0500
  2069. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2070. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2071. From:         Robert Parker <parker@GDLS.COM>
  2072. Subject:      Re: Scripting Applemail files
  2073. In-Reply-To:  <199402232142.QAA08758@dartvax.dartmouth.edu>
  2074.  
  2075. please remove me from distribution
  2076. parker@gdls.com
  2077. thanks
  2078.  
  2079.  
  2080. On Wed, 23 Feb 1994, Leonard Rosenthol wrote:
  2081.  
  2082. > >I'm interested in using Frontier or AppleScript to process the numerous files
  2083. > >I am now getting/saving thru the star nine gateway with the standard Apple
  2084. > >mailer.  Does anyone know if those files can be "decoded" with scripts into
  2085. > >their component parts?
  2086. > >
  2087. >         I know that the latest version of the GTQ OSAX library contains a
  2088. > bunch of items for PowerTalk, but I haven't had a chance to try it yet.  It
  2089. > may indeed have the items you need for querying the mailbox.
  2090. >
  2091. > Leonard
  2092. >
  2093. > -----------------------------------------------------------------------------
  2094. > Leonard Rosenthol                       Internet:       leonardr@netcom.com
  2095. > Director of Advanced Technology         AppleLink:      MACgician
  2096. > Aladdin Systems, Inc.                   GEnie:          MACgician
  2097. =========================================================================
  2098. Date:         Thu, 24 Feb 1994 11:00:44 -0500
  2099. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2100. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2101. From:         Robert Parker <parker@GDLS.COM>
  2102. Subject:      Re: Scripting Applemail files
  2103. In-Reply-To:  <199402240654.BAA03114@dartvax.dartmouth.edu>
  2104.  
  2105. please remove my name from distribution
  2106. parker@gdls.com
  2107. thanks
  2108.  
  2109.  
  2110. On Wed, 23 Feb 1994, Kee Nethery +1 510 843 6140 wrote:
  2111.  
  2112. > >I'm interested in using Frontier or AppleScript to process the numerous files
  2113. > >I am now getting/saving thru the star nine gateway with the standard Apple
  2114. > >mailer.  Does anyone know if those files can be "decoded" with scripts into
  2115. > >their component parts?
  2116. > >
  2117. > >For example I would like to create a droplet that appends the text of a
  2118. > >letter into a file whose name is the "from" parameter.
  2119. > >
  2120. >
  2121. > I have just started playing with Beyond Mail Rules and it does give you
  2122. > access to the address. You can decode them into their component parts but I
  2123. > have to say that Beyond Mail is not quite as stable as I would prefer.
  2124. >
  2125. > I have only played with opening letters within the In Tray. No idea if you
  2126. > can drag them to a droplet outside of the In Tray.
  2127. >
  2128. > For sure you could create a Beyond Mail rule that does what you desire
  2129. > automatically as new mail arrives. You could skip the process of dragging
  2130. > it onto a droplet.
  2131. >
  2132. > Kee Nethery
  2133. >
  2134. > _________________________________________________________________
  2135. > Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  2136. > A newly poured 14.4 Kbps information superhighway onramp.
  2137. =========================================================================
  2138. Date:         Thu, 24 Feb 1994 11:28:16 -0500
  2139. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2140. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2141. From:         "Bill Bug (Bill Bug)" <bbug1@CC.SWARTHMORE.EDU>
  2142. Subject:      I can't get AppleScript to talk to Eudora v1.4.1
  2143.  
  2144. Hello All,
  2145.  
  2146. For some reason, I haven't been able to take advantage of the extensive
  2147. AppleEvent suites that Eudora 1.4.1 recognizes.  I've been trying to
  2148. write a script using the AppleEvent info that is contained in Eudora's
  2149. 'aete' resource; however, none of the syntactically correct commands I
  2150. string together will work.  For instance, the following AppleScript
  2151. fragment:
  2152.  
  2153. tell application "Eudora1.4.1"
  2154.         activate
  2155.         Open Mailbox "<mailbox name>"
  2156. end tell
  2157.  
  2158. returns this error:
  2159.  
  2160. "Eudora 1.4.1 got an error.  Can't get mailbox "<mailbox name>".
  2161. Access not allowed.
  2162.  
  2163. I'm am no AppleScript expert, but I have been able to compile and
  2164. successfully run over a dozen complex scripts that interact with other
  2165. applications which recognize AppleEvents.  From the "EudoraSuite.rtf"
  2166. document available on the Internet, I was unable to cull any additional
  2167. information on how to use the 'AppleScript English' version of Eudora's
  2168. AppleEvent suite.  That document has an extensive listing of the AE
  2169. messages and objects that Eudora recognizes, but I don't know how to
  2170. utilize that info when constructing scripts in the AppleScript Script
  2171. Editor.
  2172.  
  2173. As I am not a frequent reader of this newsgroup, please reply directly
  2174. to my e-mail address.  I promise to post a summary of the info that
  2175. arrives.
  2176.  
  2177. Thanks ahead of time for your help.
  2178.  
  2179. Cheers,
  2180. Bill Bug
  2181.  
  2182. - --
  2183.  
  2184.  
  2185. *************************
  2186. *  Bill Bug             *
  2187. *  Dept. of Biology     *
  2188. *  Swarthmore College   *
  2189. *************************
  2190. =========================================================================
  2191. Date:         Thu, 24 Feb 1994 08:39:52 +0000
  2192. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2193. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2194. Comments:     Resent-From: Dave McCormick
  2195.               <lhdsy1!lhmacqm.lahabra.chevron.com!Dave_McCormick@uunet.UU.NET>
  2196. Comments:     Originally-From: MacintoshScriptingSystems
  2197.               <lhdsy1!lhmacqm.lahabra.chevron.com!MacintoshScriptingSystems
  2198.               @uunet.UU.NET>
  2199. From:         Dave McCormick
  2200.               <lhdsy1!lhmacqm.lahabra.chevron.com!Dave_McCormick@UUNET.UU.NET>
  2201. Subject:      RE>Re: Re> Scripting Applemail files
  2202.  
  2203. please remove me from the mailing list. I appologise for not using the proper
  2204. listserv signoff procedure, but I have lost the address.
  2205. David McCormick
  2206. jdsmc@chevron.com or Dave_McCormick@lhmacqm.lahabra.chevron.com
  2207. =========================================================================
  2208. Date:         Thu, 24 Feb 1994 13:31:35 -0600
  2209. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2210. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2211. From:         Jim Van Peursem <jvp@TOOLS1.EE.IASTATE.EDU>
  2212. Subject:      Re: Getting serial port status in AS
  2213. In-Reply-To:  Your message of "Wed,
  2214.               23 Feb 1994 22:48:07 PST."
  2215.               <9402241225.AA00501@tools1.ee.iastate.edu>
  2216.  
  2217. >I'm trying to figure out a way to use AppleScript to get the status
  2218. >of the serial ports (in use, not in use). Can this be done? I saw a couple
  2219. >OSAXen that query the Gestalt manager, but none of the Gestalt calls that
  2220. >they have been set up to do will return information about whether one is
  2221. >busy.
  2222. >
  2223. >For that matter, can this be done in any scripting language?
  2224.  
  2225.   Nope. In fact it's not possible from an application either. Before
  2226. system 7 there was no way to tell. Under system 7, there was no way
  2227. to tell. But I just saw a tech note fly past my desk a few days ago
  2228. that may have alluded to a possible solution. If no one else responds
  2229. with the info, I'll try to dig it up and summarize.
  2230.  
  2231. +---------------------------------------------------------------+
  2232. | Jim Van Peursem - Ph.D. Candidate - Ham Radio -> KE0PH        |
  2233. | Department of Electrical Engineering and Computer Engineering |
  2234. | Iowa State University - Ames, IA 50011 : (515) 294-8339       |
  2235. | internet - jvp@iastate.edu  -or-  jvp@cpre1.ee.iastate.edu    |
  2236. +---------------------------------------------------------------+
  2237. =========================================================================
  2238. Date:         Thu, 24 Feb 1994 13:44:39 -0600
  2239. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2240. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2241. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2242. Subject:      removal
  2243.  
  2244. Listers,
  2245.  
  2246. I just wanted to apologize for waiting a couple of hours to remove Mr. Parker
  2247. >From the list. After one of his first messages, I sent him a note explaining
  2248. how to signoff. He didn't reply to the note (he may not have gotten it), and
  2249. he sent another message or two into the list to be unsubscribed.
  2250.  
  2251. My apologies to those of you who pay for your email; he has been removed from
  2252. the list. Just to clear up any confusion, I'm attaching the list mini-FAQ that
  2253. Andy Williams sent out a few day ago. Keep it. Contemplate to it. The mini-FAQ
  2254. is your friend. :-)
  2255.  
  2256. pf
  2257.  
  2258.  
  2259. 1) How do I signoff MacScripting?
  2260.  
  2261. Send mail to LISTSERV@dartmouth.edu with the following in the body of the
  2262. message:
  2263.  
  2264. SIGNOFF MACSCRPT
  2265.  
  2266. Note: you must do this from the account from which you subscribed.
  2267.  
  2268.  
  2269. 2) How do I receive this in a daily digest?
  2270.  
  2271. Send mail to LISTSERV@dartmouth.edu with the following in the body of the
  2272. messsage:
  2273.  
  2274. SET MACSCRPT DIGEST
  2275.  
  2276.  
  2277. 3) What else can the LISTSERV do that is neat?
  2278.  
  2279. To find out, send mail to LISTSERV@dartmouth.edu with the following in the
  2280. body of the messsage:
  2281.  
  2282. INFO REFCARD
  2283.  
  2284.  
  2285. 4) How can I get basic help using LISTSERV?
  2286.  
  2287. Send mail to LISTSERV@dartmouth.edu with the following in the body of the
  2288. messsage:
  2289.  
  2290. HELP
  2291. =========================================================================
  2292. Date:         Thu, 24 Feb 1994 15:56:19 EST
  2293. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2294. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2295. From:         "Robin B. Lake" <rbl@HAL.EPBI.CWRU.EDU>
  2296. Subject:      Re: Getting serial port status in AS
  2297.  
  2298. >I'm trying to figure out a way to use AppleScript to get the status
  2299. >of the serial ports (in use, not in use). Can this be done? I saw a couple
  2300. >OSAXen that query the Gestalt manager, but none of the Gestalt calls that
  2301. >they have been set up to do will return information about whether one is
  2302. >busy.
  2303. >
  2304. >For that matter, can this be done in any scripting language?
  2305.  
  2306.   Nope. In fact it's not possible from an application either. Before
  2307. system 7 there was no way to tell. Under system 7, there was no way
  2308. to tell. But I just saw a tech note fly past my desk a few days ago
  2309. that may have alluded to a possible solution. If no one else responds
  2310. with the info, I'll try to dig it up and summarize.
  2311.  
  2312.  
  2313. ===============
  2314.  
  2315. Should be possible to tell from an application, as both VersaTerm PRO and
  2316. AppleLink 6.1 put up a dialog box noting that the port is in use and
  2317. requesting confirmation to take it over.
  2318.  
  2319. Rob Lake
  2320. Environmental Modeling Inc.
  2321. rbl@hal.cwru.edu
  2322. =========================================================================
  2323. Date:         Fri, 25 Feb 1994 00:20:14 -0800
  2324. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2325. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2326. From:         David Ray <daver@NETCOM.COM>
  2327. Subject:      Re: Getting serial port status in AS
  2328.  
  2329. >>>I'm trying to figure out a way to use AppleScript to get the status
  2330. >>>of the serial ports (in use, not in use).
  2331. >>>For that matter, can this be done in any scripting language?
  2332.  
  2333. >>Nope. In fact it's not possible from an application either.
  2334.  
  2335. >Should be possible to tell from an application, as both VersaTerm PRO and
  2336. >AppleLink 6.1 put up a dialog box noting that the port is in use and
  2337. >requesting confirmation to take it over.
  2338.  
  2339. ZTerm also can sense if the port is in use, and brings up a dialog box
  2340. where the user can ignore the port or take it over. There must be some kind
  2341. of query that can find out. Question is, where does this info. come from?
  2342. I was hoping that it came the Gestalt Manager because there are OSAXen
  2343. to talk to the Gestalt Manager.
  2344.  
  2345. Any takers?
  2346.  
  2347. Dave Ray
  2348. daver@netcom.com
  2349. =========================================================================
  2350. Date:         Fri, 25 Feb 1994 07:32:43 -0600
  2351. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2352. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2353. From:         Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
  2354. Subject:      Re: Getting serial port status in AS
  2355.  
  2356. >ZTerm also can sense if the port is in use, and brings up a dialog box
  2357. >where the user can ignore the port or take it over. There must be some kind
  2358. >of query that can find out. Question is, where does this info. come from?
  2359. >I was hoping that it came the Gestalt Manager because there are OSAXen
  2360. >to talk to the Gestalt Manager.
  2361. >
  2362. >Any takers?
  2363.  
  2364. Write a piece of code that tries to open a serial driver. Make sure the
  2365. port is already in use and check out the return codes....
  2366.  
  2367. #include <Serial.h>
  2368. short inRefNum, outRefNum;
  2369.  
  2370.  if ((err = OpenDriver("\p.AOut", &inRefNum)))
  2371.       return err;
  2372.   if ((err = OpenDriver("\p.AIn",&outRefNum)))
  2373.       return err;
  2374.  
  2375. - -----------------------------------------------------------------------
  2376. Chuck Shotton
  2377. cshotton@oac.hsc.uth.tmc.edu                           "I am NOT here."
  2378. =========================================================================
  2379. Date:         Sat, 26 Feb 1994 00:28:42 +0800
  2380. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2381. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2382. From:         Peter N Lewis <peter.lewis@INFO.CURTIN.EDU.AU>
  2383. Subject:      Re: removal
  2384.  
  2385. >I just wanted to apologize for waiting a couple of hours to remove Mr. Parker
  2386. >from the list. After one of his first messages, I sent him a note explaining
  2387.  
  2388. You apologize??? That man is a total jerk.  Why do they let these people
  2389. lose on the Internet?
  2390.    Peter.
  2391.  
  2392. _______________________________________________________________________
  2393. Peter N Lewis <peter.lewis@info.curtin.edu.au>       Ph: +61 9 368 2055
  2394. =========================================================================
  2395. Date:         Fri, 25 Feb 1994 13:41:31 -0600
  2396. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2397. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2398. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2399. Subject:      Re: removal
  2400. In-Reply-To:  Your message of "Sat,
  2401.               26 Feb 94 00:28:42 +0800." <9402251854.AA25074@lks.lks.csi.com>
  2402.  
  2403. >
  2404. > >I just wanted to apologize for waiting a couple of hours to remove Mr. Parker
  2405. > >from the list. After one of his first messages, I sent him a note explaining
  2406. >
  2407. > You apologize??? That man is a total jerk.  Why do they let these people
  2408. > lose on the Internet?
  2409. >    Peter.
  2410.  
  2411. Ahem, well I was apologizing because after the 2nd and 3rd message I realized
  2412. I should have removed him immediately. Instead, I had sent him a message
  2413. explaining the command he could use to sign off. A mistake. I know better next
  2414. time.
  2415.  
  2416. pf
  2417.  
  2418.  
  2419.  
  2420. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2421. pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
  2422.  
  2423. "Bad spellers of the world, untie!"
  2424.                                         --Graffito
  2425. =========================================================================
  2426. Date:         Fri, 25 Feb 1994 15:09:33 -0800
  2427. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2428. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2429. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  2430. Subject:      Re: Forwarded: -108 and -1753 errors
  2431.  
  2432. >Sorry this message got so long to get here -- I hope someone remembers the
  2433. >original post about the -108 error...
  2434. >
  2435. >
  2436.         Well, I can explain the OSA Menu problem, and FW may be related.
  2437.  
  2438.         the problem is that newer Finder's (especailly the scriptable one)
  2439. have the silly idea that they get to use all the memory that they have, and
  2440. no one else gets to play there.  So, if something like OSA Menu tries to
  2441. borrow a little, it just isn't there.
  2442.  
  2443. Leonard
  2444.  
  2445. - -----------------------------------------------------------------------------
  2446. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  2447. Director of Advanced Technology         AppleLink:      MACgician
  2448. Aladdin Systems, Inc.                   GEnie:          MACgician
  2449. =========================================================================
  2450. Date:         Fri, 25 Feb 1994 15:10:46 -0800
  2451. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2452. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2453. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  2454. Subject:      Re: Getting serial port status in AS
  2455.  
  2456. You can tell if a given port is "in use" - which simply means that
  2457. something has it open (including background fax software which has it open
  2458. all the time!).  There is NO WAY to actualy check "usage" w/o a set of
  2459. patches on the MacOS.
  2460.  
  2461. Leonard
  2462.  
  2463. - -----------------------------------------------------------------------------
  2464. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  2465. Director of Advanced Technology         AppleLink:      MACgician
  2466. Aladdin Systems, Inc.                   GEnie:          MACgician
  2467. =========================================================================
  2468. Date:         Fri, 25 Feb 1994 18:43:20 -0500
  2469. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2470. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2471. From:         "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
  2472. Subject:      Frontmost windoid bugs
  2473.  
  2474. For those of you who are using the Frontmost interface builder (bundled
  2475. with the AppleScript Scriptor's Kit 1.1), please be aware of the following
  2476. bug that I discovered, involving the use of floating windows/windoids:
  2477.  
  2478.  
  2479. 1.  The problem is triggered when windoids are opened in the presence of a
  2480. document or dialog (modal) window.
  2481.  
  2482. 2.  In the above circumstances, if the windoid is titled, it will appear
  2483. WITHOUT its title bar and cannot be re-sized (if a size box is present); it
  2484. does NOT behave like a windoid should.
  2485.  
  2486. 3.  If the windoid is not titled, then it will appear with a title bar
  2487. showing the name of the windoid.  In addition, its title bar has the
  2488. appearance of that from a document window (i.e. in color with the
  2489. characteristic horiz. stripes).  Other than the non-windoid appearance, it
  2490. behaves as a windoid should.
  2491.  
  2492. One way to avoid this is to be extra cautious in the order in which windows
  2493. of various types are opened--windoids must open first without any other
  2494. window types open.
  2495.  
  2496. I have gotten in touch with both Apple (not much help there--tech support
  2497. at a minimum plus they want you to buy a support contract to even begin
  2498. looking at the problem! Outrageous!) and Software Designs Unlimited.  SDU
  2499. is working on a fix for the next release--"soon."
  2500.  
  2501. I'll keep you posted.
  2502.  
  2503. Lee.
  2504.  
  2505. ==============================================================
  2506. Lee K. Hoong
  2507. Dept. of Chemistry, Emory University
  2508. ==============================================================
  2509. Internet: lhoong@unix.cc.emory.edu  |  America On-line: LHOONG
  2510. - --------------------------------------------------------------
  2511. Disclaimer: I speak for myself only, not for Emory University
  2512. =========================================================================
  2513. Date:         Fri, 25 Feb 1994 19:04:41 -0600
  2514. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2515. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2516. From:         Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
  2517. Subject:      Feeding the listserv & a question
  2518.  
  2519. Sorry about posting this to the list, itself, but how the heck does one get
  2520. this listserv to send only digests of messages? Or can it do it at all?
  2521.  
  2522. Well, as long as I'm here, I *do* have an AppleScript question. Is there a
  2523. way to get an AppleScript to return more than one direct parameter as a
  2524. result of script execution? Or, are you limited to a single result returned
  2525. to the calling app ? (Assuming you ran the script with OSADoScript)
  2526.  
  2527. - -----------------------------------------------------------------------
  2528. Chuck Shotton
  2529. cshotton@oac.hsc.uth.tmc.edu                           "I am NOT here."
  2530. =========================================================================
  2531. Date:         Fri, 25 Feb 1994 17:54:58 -0800
  2532. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2533. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2534. From:         Jerry Wilcox <Jerry.Wilcox@UCOP.EDU>
  2535. Subject:      Re: Feeding the listserv & a question
  2536.  
  2537. >Sorry about posting this to the list, itself, but how the heck does one get
  2538. >this listserv to send only digests of messages? Or can it do it at all?
  2539. >
  2540. Since the answer may be of general interest, I'll post the answer to the list.
  2541.  
  2542. To set the list to send you only a digest, send a message to
  2543.  
  2544.         LISTSERV@dartmouth.edu
  2545.  
  2546. containing the following command in the body
  2547.  
  2548.         SET MACSCRPT DIGESTS
  2549.  
  2550. Note that not all lists support the digest option, but Andy & Fred's info
  2551. posting about the new list indicated that this list did digest.
  2552.  
  2553. Should you want to return to regular distribution (i.e. getting each
  2554. message as it is posted), send the command
  2555.  
  2556.         SET MACSCRPT MAIL
  2557.  
  2558. to the LISTSERV, as above.
  2559.  
  2560. You might also want to include a HELP command (on a separate line) in the
  2561. message. That will cause you to get an informational message which will
  2562. tell you about a lot of the other LISTSERV options. You may even want to
  2563. get a listserv reference "card", which you can request with an
  2564.  
  2565.         INFO REFCARD
  2566.  
  2567. command. That will show you all of the various commands that are available
  2568. to you. These commands are good on *all* listserv lists, not just macscrpt.
  2569. Do note, however, that not all mailing lists are listserv lists.
  2570.  
  2571. NOTE AGAIN: these commands *must* be sent to LISTSERV itself -- *not* to
  2572. the list.
  2573.  
  2574. Jerry
  2575.  
  2576. - -----
  2577. Jerry Wilcox - Jerry.Wilcox@ucop.edu
  2578. All opinions are mine alone - the University can speak for itself.
  2579. =========================================================================
  2580. Date:         Sat, 26 Feb 1994 00:21:17 EST
  2581. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2582. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2583. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  2584. Subject:      "Complex" replies from scripts
  2585. In-Reply-To:  In reply to your message of FRI 25 FEB 1994 08:04:41 EST
  2586.  
  2587. >Well, as long as I'm here, I *do* have an AppleScript question. Is there a
  2588. >way to get an AppleScript to return more than one direct parameter as a
  2589. >result of script execution? Or, are you limited to a single result returned
  2590. >to the calling app ? (Assuming you ran the script with OSADoScript)
  2591.  
  2592.     Aha! I was just about to ask this one.
  2593.  
  2594.     Just in case you smart cookies lurking in the shadows though you
  2595. would get out of this one, forget it! Enquiring minds want to know!
  2596.  
  2597.     From a programmer's point of view, though, it doesn't look good.
  2598. Notice in NIM:IAC that the 'aete' resource has no provisions for
  2599. specifying anything regarding the reply AE other than its direct object.
  2600.  
  2601.     Assuming the above is impossible, is it possible to manually play
  2602. with the error code or string returned? If the script fails, there's
  2603. always an error code or string paramater in the reply AE, but is a
  2604. catastrophic failure a requirement to get this? Does the "fail" com-
  2605. mand play a role?
  2606.  
  2607.     Cheers,
  2608.  
  2609.     Mark Aiken
  2610.     inra@musicb.mcgill.ca
  2611. =========================================================================
  2612. Date:         Fri, 25 Feb 1994 22:27:33 -0800
  2613. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2614. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2615. From:         Mike Crawford <crawford@SCIPP.UCSC.EDU>
  2616. Subject:      Re: "Complex" replies from scripts
  2617.  
  2618. Regarding getting more than one parameter from a reply...
  2619.  
  2620. Though this is provided for in the Apple Event manager, I have it from
  2621. some authorities on AppleScript that there is no way to do this in A.S.
  2622. itself.
  2623.  
  2624. Thus I'm revising the CheckWord event in the Word Services spec.  I used
  2625. to allow an optional list of guesses to be returned when one checked a
  2626. single word.  This works fine for the usual direct connection between
  2627. word services apps, but it is incompatible with AppleScript.  Instead,
  2628. I'm adding a new event called GuessWord.
  2629.  
  2630. There certainly ought to be a way to get at the error string if there
  2631. is one, but I do not know it other than to use AETracker.  It is tremendously
  2632. useful to have the error string as a debugging tool - you can use it to
  2633. report which function posted the error, etc.
  2634.  
  2635. Mike Crawford           | Author of the Word Services Apple Event Suite.
  2636. crawford@scipp.ucsc.edu | Free Mac Source Code: ftp sumex-aim.stanford.edu
  2637.                         | get /info-mac/dev/src/writeswell-jr-102-c.hqx
  2638. =========================================================================
  2639. Date:         Sat, 26 Feb 1994 00:51:50 -0800
  2640. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2641. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2642. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2643. Subject:      Re: "Complex" replies from scripts
  2644.  
  2645. At  0:21 2/26/94 -0500, INRA000 wrote:
  2646.  
  2647. >>Well, as long as I'm here, I *do* have an AppleScript question. Is there a
  2648. >>way to get an AppleScript to return more than one direct parameter as a
  2649. >>result of script execution? Or, are you limited to a single result returned
  2650. >>to the calling app ? (Assuming you ran the script with OSADoScript)
  2651. >
  2652. >    Aha! I was just about to ask this one.
  2653. >
  2654. >    Just in case you smart cookies lurking in the shadows though you
  2655. >would get out of this one, forget it! Enquiring minds want to know!
  2656.  
  2657. I suspect it is done just as returning multiple values from a functional
  2658. osax is done:  create a class; return a record containing each of the
  2659. property values for the class.
  2660.  
  2661. >    From a programmer's point of view, though, it doesn't look good.
  2662. >Notice in NIM:IAC that the 'aete' resource has no provisions for
  2663. >specifying anything regarding the reply AE other than its direct object.
  2664.  
  2665. Given the class above, you specify the return value to be of the class type.
  2666.  
  2667. >    Assuming the above is impossible, is it possible to manually play
  2668. >with the error code or string returned? If the script fails, there's
  2669. >always an error code or string paramater in the reply AE, but is a
  2670. >catastrophic failure a requirement to get this? Does the "fail" com-
  2671. >mand play a role?
  2672.  
  2673. Not a good idea, IMHO.  Non-zero 'errn' or any 'errs' implies an error.
  2674. They probably shouldn't be asked to be used as a way to sneak non-error
  2675. information around.
  2676.  
  2677. - --
  2678. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2679.    "This is the network of our disconnect"
  2680. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2681. =========================================================================
  2682. Date:         Sat, 26 Feb 1994 05:44:39 -0800
  2683. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2684. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2685. From:         Jon Pugh <jonpugh@NETCOM.COM>
  2686. Subject:      Re: MACSCRPT Digest - 24 Feb 1994 to 25 Feb 1994
  2687.  
  2688. >Well, as long as I'm here, I *do* have an AppleScript question. Is there a
  2689. >way to get an AppleScript to return more than one direct parameter as a
  2690. >result of script execution? Or, are you limited to a single result returned
  2691. >to the calling app ? (Assuming you ran the script with OSADoScript)
  2692.  
  2693. No.  You can add other parameters to your reply event in your event
  2694. handler, but AppleScript cannot access them.  The best you can do is to
  2695. return a list or a record.  A record is the most common way of returned
  2696. tagged data.  You simply define a class (with properties only) and use the
  2697. properties as keywords for your AERecord.  Return this as the keyAEResult
  2698. and you are in business.  Then you can do something like:
  2699.  
  2700. set x to fooEvent
  2701. set y to propFoo of x
  2702.  
  2703. Jon
  2704. =========================================================================
  2705. Date:         Sat, 26 Feb 1994 14:23:49 EST
  2706. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2707. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2708. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  2709. Subject:      Event handlers: how?
  2710.  
  2711.     Hiya.
  2712.  
  2713.     I'm having trouble writing a script with handlers for events
  2714. not part of the required suite (run, open, print, quit). Handlers for
  2715. required events are formatted differently when compiled than handlers
  2716. for events defined by an application. For example, an "on open" handler
  2717. compiles to look like
  2718.  
  2719. on open
  2720.   ...
  2721. end open
  2722.  
  2723.     However, a handler for the "Stuff" command (defined in the Stuffit
  2724. Lite dictionary) compiles to look like
  2725.  
  2726. on stuff()
  2727.   ...
  2728. end stuff
  2729.  
  2730.     Which looks suspiciously like the syntax for an internal message,
  2731. and not a handler for an Apple Event. As well, a handler for
  2732. "Stack windows" (defined in Stuffit) won't even compile -- in the
  2733. line "on stack windows", AE barfs on the "windows". Does this mean that
  2734. any event you want to write a handler for must have a name one word
  2735. long? Strangely, AE compiles "on data size" (defined in the Scriptable
  2736. Text Editor) fine. Formatted as "on data size [...] end data size"
  2737. (No parentheses).
  2738.  
  2739.     The reason I ask is that I'm trying to write scripts that will tie
  2740. in with an application I'm writing -- I've written an 'aete' resource,
  2741. but I can't seem to get AppleScript to compile handlers for my defined
  2742. events. However, since I can't seem to write handlers for other apps'
  2743. events, either, I figure I must have the syntax wrong. Stuff like
  2744. "on MyEvent() [...] end MyEvent" compiles OK, but I just get
  2745. errAEEventNotHandled errors when trying to run the appropriate event
  2746. through that script.
  2747.  
  2748.     Can I kludge this by writing "on ((some wierd notation for the
  2749. event class and ID))" manually?
  2750.  
  2751.     Any help appreciated.
  2752.  
  2753.     Mark Aiken
  2754.     inra@musicb.mcgill.ca
  2755. =========================================================================
  2756. Date:         Sat, 26 Feb 1994 17:24:45 -0800
  2757. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2758. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2759. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2760. Subject:      Re: Event handlers: how?
  2761.  
  2762. >    Hiya.
  2763. >
  2764. >    I'm having trouble writing a script with handlers for events
  2765. >not part of the required suite (run, open, print, quit). Handlers for
  2766. >required events are formatted differently when compiled than handlers
  2767. >for events defined by an application. For example, an "on open" handler
  2768. >compiles to look like
  2769. >
  2770. >on open
  2771. >  ...
  2772. >end open
  2773. >
  2774. >    However, a handler for the "Stuff" command (defined in the Stuffit
  2775. >Lite dictionary) compiles to look like
  2776. >
  2777. >on stuff()
  2778. >  ...
  2779. >end stuff
  2780.  
  2781. Huh?   Why are you trying to write a handler for the stuff command.  You
  2782. want to USE the stuff command, don't you?  Not write a handler for it.
  2783.  
  2784. tell application "StuffIt Lite"
  2785.    stuff ....
  2786. end tell
  2787.  
  2788.  
  2789.  
  2790. - --
  2791. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2792.    "This is the network of our disconnect"
  2793. finger me to prove I'm all wet (Port Ludlow rainfall numbers).
  2794. =========================================================================
  2795. Date:         Sat, 26 Feb 1994 20:59:10 -0500
  2796. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2797. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2798. From:         Chris Brannon <cbbst+@PITT.EDU>
  2799. Subject:      Unofficial Translator List
  2800.  
  2801. OK,
  2802.  
  2803. I checked out the Name resources of the Aladdin Translators.  A few of them
  2804. didn't have Name resources, so I guess they can't be scripted.
  2805.  
  2806. Here are the names you ought to be able to use when refering to the translat=
  2807. ors:
  2808.  
  2809. n/a             AppleLink Package Translator
  2810. AppleSingle     AppleSingle Translator
  2811. BinHex4         BinHex4 Translator
  2812. btoa/atob       btoa/atob Translator
  2813. CompactPro      CompactPro Translator
  2814. n/a             DD Translator
  2815. Arc             DeArc Translator
  2816. MacBinary       MacBinary Translator
  2817. tar             tar Translator
  2818. n/a             Text Translator
  2819. Compress        Unix Compress Translator
  2820. PackIt          UnPack Translator
  2821.  
  2822.  
  2823. I say *should* be able to use, b/c a couple of them still fail.  "Compress"
  2824. for instance, doesn't.  The following script:
  2825.  
  2826. - ------------
  2827. on open fileList
  2828.         repeat with thisFile in fileList
  2829.                 tell application "SITcomm=81"
  2830. Translate (thisFile as string) translationformat "Compress" with tomacformat
  2831.                 end tell
  2832.         end repeat
  2833. end open
  2834. - ------------
  2835.  
  2836. just doesn't work (it works fine with BinHex4 and tar, though).  BTW, using
  2837. the UUCode translator with the above script invokes Macsbug when I try it.
  2838.  
  2839. Could someone else try this script and see if they can get it to deUnix
  2840. Compress a document?
  2841.  
  2842. Regards,...Chris
  2843. =========================================================================
  2844. Date:         Sat, 26 Feb 1994 22:56:00 EST
  2845. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2846. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2847. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  2848. Subject:      Re[2]: Event handlers: how?
  2849. In-Reply-To:  In reply to your message of SAT 26 FEB 1994 04:24:45 EST
  2850.  
  2851. >>    Hiya.
  2852. >>
  2853. >>    I'm having trouble writing a script with handlers for events
  2854. >>not part of the required suite (run, open, print, quit). Handlers for
  2855. >>required events are formatted differently when compiled than handlers
  2856. >>for events defined by an application. For example, an "on open" handler
  2857. >>compiles to look like
  2858. >>
  2859. >>on open
  2860. >>  ...
  2861. >>end open
  2862. >>
  2863. >>    However, a handler for the "Stuff" command (defined in the Stuffit
  2864. >>Lite dictionary) compiles to look like
  2865. >>
  2866. >>on stuff()
  2867. >>  ...
  2868. >>end stuff
  2869. >
  2870. >Huh?   Why are you trying to write a handler for the stuff command.  You
  2871. >want to USE the stuff command, don't you?  Not write a handler for it.
  2872.  
  2873.     I was merely using this as an example.
  2874.  
  2875.     To repeat, I'm working on tying AppleScript into an application I'm
  2876. writing, and I can't seem to figure out how to write event handlers for
  2877. events defined by an application. This doesn't seem to be local to my
  2878. application -- as stated above, I can't, for example, write a handler
  2879. for the "stuff" command.
  2880.  
  2881.     Anyone know what I'm doing wrong? Can anyone, for example, write
  2882. a handler to the stuff command? Or any app-defined event, for that
  2883. matter?
  2884.  
  2885.     Mark Aiken
  2886.     inra@musicb.mcgill.ca
  2887. =========================================================================
  2888. Date:         Sun, 27 Feb 1994 09:34:01 +0200
  2889. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2890. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2891. Comments:     The BITNET node taurus.bitnet will cease to exist as of March
  2892.               1994. If you are still using the address user@taurus.bitnet
  2893.               please convert it to user@math.tau.ac.il
  2894. From:         David *Frenkiel <dfl@MATH.TAU.AC.IL>
  2895. Subject:      Re: Unofficial Translator List
  2896.  
  2897. Hi
  2898.  
  2899. Are any of these translators Public-domain/shareware?  Does anyone know
  2900. of a scriptable zip translator?
  2901.  
  2902.         thanx
  2903.  
  2904.                 David
  2905. =========================================================================
  2906. Date:         Sun, 27 Feb 1994 07:26:07 GMT
  2907. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2908. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2909. From:         Central Postmaster <SSW.POSTMSTR@TSOD.LMIG.COM>
  2910. Subject:      Mail Delivery Status
  2911.  
  2912.  ***** Error in Mail Delivery *****
  2913.  
  2914. INVALID RECIPIENT
  2915.  
  2916.  Recipients:
  2917.  
  2918.  MSMAIL.JOYS@TSOD.LMIG.COM
  2919. =========================================================================
  2920. Date:         Sun, 27 Feb 1994 21:59:31 -0800
  2921. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2922. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2923. From:         Jeff Mealiffe <jmealif@CTP.ORG>
  2924. Subject:      FileMaker to Eudora
  2925.  
  2926. Hodwy NetFolks!
  2927.  
  2928. I'm trying to write an AppleScript to copy data out of a field named
  2929. "Internet" of the current record in a FileMaker Pro 2.0 database and put
  2930. that string into the To: field of a new Eudora 1.4.1 message.  Has anyone
  2931. already written such a script?  Can anyone offer any suggestions?  All help
  2932. will be greatly appreciated.
  2933.  
  2934. Thanks,
  2935. - -jeff
  2936.  
  2937.  
  2938. Jeff Mealiffe                                Jeff.Mealiffe@netops.lewis.edu
  2939. Mac Consultant/Sys Admin                                    jmealif@ctp.org
  2940. Lewis Junior High School, San Diego, Calif.          jmealif@sierra.fwl.edu
  2941. ** For Information About The Lewis Jr. High Educational Foundation, send **
  2942. ** e-mail to lewis@cerf.net with a subject of "mailserv send foundation" **
  2943. **     (without the quotes).  The system will respond automatically.     **
  2944. =========================================================================
  2945. Date:         Mon, 28 Feb 1994 05:15:21 LCL
  2946. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2947. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2948. From:         Rick Zeman <rick.zeman@HIS.COM>
  2949. Organization: Heller Information Services, Inc., Rockville MD
  2950. Subject:      MACSCRPT DIGEST
  2951.  
  2952. |Hi
  2953. |
  2954. |Are any of these translators Public-domain/shareware?  Does anyone know
  2955. |of a scriptable zip translator?
  2956.  
  2957. ZipIt (shareware) is scriptable.
  2958.  
  2959. ___________________________________________________________________________
  2960. Rick Zeman                                "Wer nie sein Brot mit Tranen ass
  2961. rzeman@his.com                              Wer nie die kummervollen Nachte
  2962. Fidonet: 1:109/70.943                          Auf seinem Bette weinend sas
  2963.                              Der kennt euch nicht, ihr himmlishcen Machte."
  2964.                                            -- Goethe, "Wilhelm Meister"
  2965. =========================================================================
  2966. Date:         Mon, 28 Feb 1994 13:48:29 -0500
  2967. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2968. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2969. From:         "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
  2970. Subject:      Re(3): Event handlers: how?
  2971.  
  2972. >    To repeat, I'm working on tying AppleScript into an application I'm
  2973. >writing, and I can't seem to figure out how to write event handlers for
  2974. >events defined by an application. This doesn't seem to be local to my
  2975. >application -- as stated above, I can't, for example, write a handler
  2976. >for the "stuff" command.
  2977. >
  2978. >    Anyone know what I'm doing wrong? Can anyone, for example, write
  2979. >a handler to the stuff command? Or any app-defined event, for that
  2980. >matter?
  2981. >
  2982. >    Mark Aiken
  2983. >    inra@musicb.mcgill.ca
  2984.  
  2985. Handlers for custom events can be written in AppleScript and take the form:
  2986.  
  2987. on | to commandName [[of] directParameter] [[given] paramLabel:parameter [,
  2988. paramLabel:parameter]...] [global variableID [, variableID]...] [local
  2989. variableID [, variableID]
  2990.  
  2991. [statement]...
  2992.  
  2993. end [commandName]
  2994.  
  2995. So, for example, if my application sends a custom event (class:FMPX,
  2996. ID:dlog) to a script that's saved as an applet, the handler would look
  2997. something like:
  2998.  
  2999. on =ABaevt FMPXdlog=BB of theDirParamGiven
  3000.  
  3001.   display dialog (theDirParamGiven as string)
  3002.  
  3003. end
  3004.  
  3005. Everytime my application sends the custom event to the above handler, it
  3006. will take the direct parameter of the event and display it in a dialog box.
  3007.  
  3008. Lee.
  3009.  
  3010. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  3011. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  3012. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  3013. Lee K. Hoong
  3014. Dept. of Chemistry, Emory University
  3015. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  3016. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  3017. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  3018. Internet: lhoong@unix.cc.emory.edu  |  America On-line: LHOONG
  3019. - --------------------------------------------------------------
  3020. Disclaimer: I speak for myself only, not for Emory University
  3021. =========================================================================
  3022. Date:         Mon, 28 Feb 1994 10:47:42 PDT
  3023. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3024. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3025. From:         network_manager@ALDUS.COM
  3026. Organization: Aldus Corporation, Seattle, WA
  3027. Subject:      NDN:Re(3): Event handlers: how?
  3028.  
  3029. Your mail to the Microsoft Mail Server could not be fully
  3030. delivered!   No Valid Addresses!   It has been deleted.
  3031.  
  3032. Error List:
  3033.   Bad 'To:' Address: alan.stearns@MSM-Inter
  3034. =========================================================================
  3035. Date:         Mon, 28 Feb 1994 13:59:28 -0500
  3036. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3037. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3038. From:         "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
  3039. Subject:      Re: Re(3): Event handlers: how?
  3040.  
  3041. >Handlers for custom events can be written in AppleScript and take the form:
  3042. >
  3043. >on | to commandName [[of] directParameter] [[given] paramLabel:parameter [,
  3044. >paramLabel:parameter]...] [global variableID [, variableID]...] [local
  3045. >variableID [, variableID]
  3046. >
  3047. >[statement]...
  3048. >
  3049. >end [commandName]
  3050. >
  3051. >So, for example, if my application sends a custom event (class:FMPX, ID:dlo=
  3052. g)
  3053. >to a script that's saved as an applet, the handler would look something lik=
  3054. e:
  3055. >
  3056. >on =ABaevt FMPXdlog=BB of theDirParamGiven
  3057. >
  3058. >  display dialog (theDirParamGiven as string)
  3059. >
  3060. >end
  3061. >
  3062. >Everytime my application sends the custom event to the above handler, it wi=
  3063. ll
  3064. >take the direct parameter of the event and display it in a dialog box.
  3065. >
  3066. >Lee.
  3067.  
  3068. Oops!  There was an error in the sample event handler I posted earlier; the
  3069. corrected version is:
  3070.  
  3071. on =ABevent FMPXdlog=BB of theDirParamGiven
  3072.  
  3073.   display dialog (theDirParamGiven as string)
  3074.  
  3075. end
  3076.  
  3077. Sorry!
  3078.  
  3079. Lee.
  3080.  
  3081. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  3082. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  3083. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  3084. Lee K. Hoong
  3085. Dept. of Chemistry, Emory University
  3086. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  3087. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  3088. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  3089. Internet: lhoong@unix.cc.emory.edu  |  America On-line: LHOONG
  3090. - --------------------------------------------------------------
  3091. Disclaimer: I speak for myself only, not for Emory University
  3092. =========================================================================
  3093. Date:         Mon, 28 Feb 1994 11:00:30 -0800
  3094. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3095. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3096. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  3097. Subject:      Re: Unofficial Translator List
  3098.  
  3099. >Are any of these translators Public-domain/shareware?
  3100. >
  3101.         No!   The translators either come with your copy of StuffIt Lite or
  3102. StuffIt Deluxe.
  3103.  
  3104. >Does anyone know of a scriptable zip translator?
  3105. >
  3106.         The one in StuffIt Deluxe works nicely, or you may want to look at
  3107. ZIPIt a shareware product that has some limited scriptability.
  3108.  
  3109. Leonard
  3110.  
  3111. - -----------------------------------------------------------------------------
  3112. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  3113. Director of Advanced Technology         AppleLink:      MACgician
  3114. Aladdin Systems, Inc.                   GEnie:          MACgician
  3115. =========================================================================
  3116. Date:         Mon, 28 Feb 1994 14:45:31 -0600
  3117. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3118. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3119. From:         Geoffrey Bonser <gbonser@MACC.WISC.EDU>
  3120. Subject:      Eudora & Applescript
  3121.  
  3122. I am trying to get Eudora 1.4.2 to launch with a settings file other than
  3123. the default one but I am not having any luck. I have an alias to the
  3124. settings file that I want opened on one machine and the real settings file
  3125. is on another machine in the same zone. If I tell the Finder (7.1) to open
  3126. the alias, nada, it just times out. If I try to tell Finder Liason to open
  3127. the alias it complains about not being able to make some data into the
  3128. expected type. i.e. tell application "Finder Liason 1.1" to open file
  3129. "Disk:Folder:Settings File alias" doesn't work and if I try to tell Eudora
  3130. to open document "Disk:Folder:Settings File alias" it starts up and opens
  3131. the default settings.
  3132. Does anyone have some suggestions or a working script that does this?
  3133.  
  3134. *****************************************************************************
  3135. * Geoffrey E. Bonser     * Never try to teach a pig to sing. It wastes your *
  3136. * gbonser@macc.wisc.edu  * time and annoys the pig.                         *
  3137. * Medical Photography    *      --Robert Heinlein                           *
  3138. * H6/137 CSC             ****************************************************
  3139. * 600 Highland Ave.      * Truly witty sig under construction.              *
  3140. * Madison, WI 53792-1624 *                                                  *
  3141. * (608) 263-6027         *                                                  *
  3142. ****************************************************************************
  3143. *
  3144. =========================================================================
  3145. Date:         Mon, 28 Feb 1994 18:53:19 -0500
  3146. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3147. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3148. From:         "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
  3149. Subject:      Re(4): Event handlers: how?
  3150.  
  3151. >    To repeat, I'm working on tying AppleScript into an application I'm
  3152. >writing, and I can't seem to figure out how to write event handlers for
  3153. >events defined by an application. This doesn't seem to be local to my
  3154. >application -- as stated above, I can't, for example, write a handler
  3155. >for the "stuff" command.
  3156. >
  3157. >    Anyone know what I'm doing wrong? Can anyone, for example, write
  3158. >a handler to the stuff command? Or any app-defined event, for that
  3159. >matter?
  3160. >
  3161. >    Mark Aiken
  3162. >    inra@musicb.mcgill.ca
  3163.  
  3164. Sorry my last messages have come across somewhat garbled.  Here's my latest
  3165. attempt:
  3166.  
  3167. Handlers for custom events can be written in AppleScript and take the form:
  3168.  
  3169. on | to commandName [[of] directParameter] [[given] paramLabel:parameter [,
  3170. paramLabel:parameter]...] [global variableID [, variableID]...] [local
  3171. variableID [, variableID]
  3172.  
  3173. [statement]...
  3174.  
  3175. end [commandName]
  3176.  
  3177. So, for example, if my application sends a custom event (class:FMPX,
  3178. ID:dlog) to a script that's saved as an applet, the handler would look
  3179. something like:
  3180.  
  3181. on <<event FMPXdlog>> of theDirParamGiven
  3182. - -- where << is option-\ and << is shift-option-\
  3183.  
  3184.   display dialog (theDirParamGiven as string)
  3185.  
  3186. end
  3187.  
  3188. Everytime my application sends the custom event to the above handler, it
  3189. will take the direct parameter of the event and display it in a dialog box.
  3190.  
  3191. Lee.
  3192.  
  3193. Lee K. Hoong
  3194. Dept. of Chemistry, Emory University
  3195. Internet: lhoong@unix.cc.emory.edu  |  America On-line: LHOONG
  3196. Disclaimer: I speak for myself only, not for Emory University
  3197. =========================================================================
  3198. Date:         Mon, 28 Feb 1994 18:54:00 EST
  3199. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3200. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3201. From:         INRA000 <INRA@MUSICB.MCGILL.CA>
  3202. Subject:      Re(4): Event handlers: how?
  3203.  
  3204. >Handlers for custom events can be written in AppleScript and take the form:
  3205. >
  3206. >on | to commandName [[of] directParameter] [[given] paramLabel:parameter [,
  3207. >paramLabel:parameter]...] [global variableID [, variableID]...] [local
  3208. >variableID [, variableID]
  3209. >
  3210. >[statement]...
  3211. >
  3212. >end [commandName]
  3213. >
  3214. >So, for example, if my application sends a custom event (class:FMPX, ID:dlo=
  3215. g)
  3216. >to a script that's saved as an applet, the handler would look something lik=
  3217. e:
  3218. >
  3219. >on =ABaevt FMPXdlog=BB of theDirParamGiven
  3220. >
  3221. >  display dialog (theDirParamGiven as string)
  3222. >
  3223. >end
  3224. >
  3225. >Everytime my application sends the custom event to the above handler, it wi=
  3226. ll
  3227. >take the direct parameter of the event and display it in a dialog box.
  3228.  
  3229.     This is all very well. I've gotten a handler to work using the
  3230. notation
  3231.  
  3232. on <<event ABDCabcd>> of directParam
  3233.     display dialog (directParam as string)
  3234. end <<event ABCDabcd>>
  3235.  
  3236.     This works fine. However, I still haven't convinced AS to accept
  3237. paramaters other than the direct one. In my app's 'aete', I define the
  3238. names for the paramaters of a certain event. Let's say the event
  3239. class is 'ABCD' and the event ID is 'abcd'. Let's also say that I have
  3240. a direct parameter and another paramater, keyword '1234', named
  3241. otherParam. All this is in my 'aete', opened from the Script Editor.
  3242. This *does not* work:
  3243.  
  3244. on <<event ABCDabcd>> of directParam given otherParam:varName
  3245.     display dialog (varName as string)
  3246. end <<event ABCDabcd>>
  3247.  
  3248.     I get the error: "Paramater otherParam is missing from <<event
  3249. ABCDabcd>>. But it isn't. I checked.
  3250.  
  3251.     Is there another manual notation like the <<event ABCDabcd>>
  3252. notation that could use to indicate the keyword of my other paramater?
  3253. Something like
  3254.  
  3255. on <<event ABCDabcd>> of directParam <<parameter 1234>>:varName ??
  3256.  
  3257.     Final question: all this still doesn't answer my question: why
  3258. isn't AS using my 'aete'? stuff like "on myEventName" *still*
  3259. doesn't work, although manually saying "on <<event ABCDabcd>>" *does*.
  3260. The paramater problems clearly indicates that AS is *not* referring
  3261. to my 'aete' for appropriate vocabulary. Why not? Again, this doesn't
  3262. seem to be local to my application. Can anyone out there write a
  3263. functional event handler of the form
  3264.  
  3265. on eventName of var1Name given humanLanguageTag:var2Name ???
  3266.  
  3267.     I'm running AS1.0. Was this fixed in 1.1, perchance?
  3268.  
  3269.     Cheers, and thanks for the help so far,
  3270.  
  3271.     Mark Aiken
  3272.     inra@musicb.mcgill.ca
  3273.  
  3274. ------- End of Forwarded Message
  3275.  
  3276.  
  3277.  
  3278.